public class OpenSelectedAction extends Action
Constructor and Description |
---|
OpenSelectedAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.String |
getText()
Returns a String that will be shown as the text of the menu item or
the tooltip of the toolbar button.
|
void |
prepareForNode(VPTNode node)
When a node is selected (for the toolbar button) or when the context
menu is shown (for the menu item), this method is called and the
selected node is passed, so the action can choose whether the action
will be available or not for that node.
|
public java.lang.String getText()
Action
public void actionPerformed(java.awt.event.ActionEvent e)
public void prepareForNode(VPTNode node)
Action
By default, does nothing.
prepareForNode
in class Action
node
- The selected node, or null
if multiple
nodes are selected.