projectviewer.action
Class OpenWithAppAction
java.lang.Object
projectviewer.action.Action
projectviewer.action.OpenWithAppAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener
- public class OpenWithAppAction
- extends Action
Opens a file with a registered app, or ask for an application in case none
is configured for the file type.
- Version:
- $Id: OpenWithAppAction.java 6333 2005-02-10 06:31:59Z vanza $
- Author:
- Marcelo Vanzin
- See Also:
AppLauncher
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenWithAppAction
public OpenWithAppAction()
getText
public java.lang.String getText()
- Returns the text to be shown on the button and/or menu item.
- Specified by:
getText
in class Action
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Creates a new project.
prepareForNode
public void prepareForNode(VPTNode node)
- Enable action only for the root node.
- Overrides:
prepareForNode
in class Action
- Parameters:
node
- The selected node, or "null" if multiple nodes are
selected.