Removing htm,html from plugin.xml.
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / OpenBrowserAction.java
1 /**
2  * Copyright (c) 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  �*
8  * Contributors:
9  *    IBM - Initial API and implementation
10  */
11 package net.sourceforge.phpeclipse.webbrowser;
12
13 import org.eclipse.jface.action.Action;
14
15 /**
16  * Action to open the Web browser.
17  */
18 public class OpenBrowserAction extends Action {
19         /**
20          * OpenBrowserAction constructor comment.
21          */
22         public OpenBrowserAction() {
23                 super();
24         }
25
26         /**
27          * Implementation of method defined on <code>IAction</code>.
28          */
29         public void run() {
30                 WebBrowser.openURL(new WebBrowserEditorInput(null,
31                                 WebBrowserEditorInput.SHOW_ALL
32                                                 | WebBrowserEditorInput.FORCE_NEW_PAGE));
33         }
34 }