projectviewer.action
Class FileImportAction
java.lang.Object
projectviewer.action.Action
projectviewer.action.FileImportAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Comparable<Action>, java.util.EventListener
public class FileImportAction
- extends Action
Action that when executed imports files into a node.
- Author:
- Marcelo Vanzin
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 projects and directories. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileImportAction
public FileImportAction()
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 projects and directories.
- Overrides:
prepareForNode
in class Action
- Parameters:
node
- The selected node, or null
if multiple
nodes are selected.