|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.action.Action
projectviewer.action.LaunchBrowserAction
Opens the selected file in the configured web-browser. Files that are under the project root are treated differently: the project's URL root is used to build the URL. For other files, or if the projects URL is not set, the absolute path to the file is given to the browser.
Nested Class Summary | |
static class |
LaunchBrowserAction.Helper
Class to hold references to classes that may not be available, so this class can behave well when called from a BeanShell script. |
Field Summary |
Fields inherited from class projectviewer.action.Action |
action, cmItem, tbButton, viewer |
Constructor Summary | |
LaunchBrowserAction()
Default constructor. |
|
LaunchBrowserAction(VPTFile file)
Instantiates a launcher for the given file. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Creates a new project. |
java.lang.String |
getText()
Returns the text to be shown on the button and/or menu item. |
void |
prepareForNode(VPTNode node)
Enable action only for the root node. |
Methods inherited from class projectviewer.action.Action |
clone, getButton, getIcon, getMenuItem, setViewer |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LaunchBrowserAction()
public LaunchBrowserAction(VPTFile file)
Method Detail |
public java.lang.String getText()
getText
in class Action
public void actionPerformed(java.awt.event.ActionEvent e)
public void prepareForNode(VPTNode node)
prepareForNode
in class Action
node
- The selected node, or "null" if multiple nodes are
selected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |