|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.actions.CommandActionSupporter
OBject that needs to be return as an attribute of all fileobjects that support the Abstract/GeneralCommandAction framework and all the actions that subclass these two classes. The name of the attribute is in AbstractCommandAction.VCS_ACTION_ATTRIBUTE.
Constructor Summary | |
CommandActionSupporter()
Creates new CommandActionSupporter |
Method Summary | |
String |
getMenuDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the menu name. |
String |
getPopupDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the popup menu name. |
String |
getToolBarDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the toolbar tooltip. |
abstract boolean |
isEnabled(GeneralCommandAction action,
FileObject[] fileObjects)
GeneralCommandAction asks the supporter during the enabled(Node[] nodes) method. |
abstract void |
performAction(GeneralCommandAction action,
FileObject[] fileObjects)
GeneralCommandAction tells the supporter during the performsAction(Node[] nodes) method to perform the action on the specified FileObjects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandActionSupporter()
Method Detail |
public abstract boolean isEnabled(GeneralCommandAction action, FileObject[] fileObjects)
action
- The action that initiated this request.fileObjects
- Array of fileObjects extracted from the Activated nodes.public abstract void performAction(GeneralCommandAction action, FileObject[] fileObjects)
action
- The action that initiated this request.fileObjects
- Array of fileObjects extracted from the Activated nodes.public String getToolBarDisplayName(GeneralCommandAction action)
public String getMenuDisplayName(GeneralCommandAction action)
public String getPopupDisplayName(GeneralCommandAction action)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |