projectviewer.action
Class SearchAction
java.lang.Object
projectviewer.action.Action
projectviewer.action.SearchAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Comparable<Action>, java.util.EventListener
public class SearchAction
- extends Action
Opens the search dialog for the selected directory/project.
- Author:
- Marcelo Vanzin
Nested Class Summary |
static class |
SearchAction.NodeFileSet
Implements a SearchFileSet representing files that are children of a given
node and its children. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Opens the search dialog according to the current context. |
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 |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchAction
public SearchAction()
SearchAction
public SearchAction(VPTNode node)
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)
- Opens the search dialog according to the current context.
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.