projectviewer.action
Class NodeRenamerAction
java.lang.Object
projectviewer.action.Action
projectviewer.action.NodeRenamerAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener
- public class NodeRenamerAction
- extends Action
Action for renaming files, directories and projects.
- Version:
- $Id: NodeRenamerAction.java 9140 2007-03-15 04:33:39Z vanza $
- Author:
- Marcelo Vanzin
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Renames a node. |
java.lang.String |
getText()
Returns the text to be shown on the button and/or menu item. |
void |
prepareForNode(VPTNode node)
Disable action only for the root node. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeRenamerAction
public NodeRenamerAction()
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)
- Renames a node.
prepareForNode
public void prepareForNode(VPTNode node)
- Disable action only for the root node.
- Overrides:
prepareForNode
in class Action
- Parameters:
node
- The selected node, or "null" if multiple nodes are
selected.