public interface ToolAction
Modifier and Type | Interface and Description |
---|---|
static class |
ToolAction.Flag
Tool action flags.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ActionContext context,
Highlightable highlightItem)
Executes the action.
|
String |
getMenuName()
Gets the menu name for this action.
|
String |
getToolbarHint()
Gets the toolbar item tool hint for this action.
|
AutosizedIcon |
getToolbarIcon()
Gets the toolbar icon for this action.
|
String |
getToolbarLabel()
Gets the toolbar item label for this action.
|
boolean |
hasFlag(ToolAction.Flag f)
Determines if the action has a flag.
|
boolean |
showMenuItem()
Determines if a menu item for the action should be shown.
|
boolean |
showToolbarItem()
Determines if a toolbar item for the action should be shown.
|
void execute(ActionContext context, Highlightable highlightItem)
context
- context which provides information about the current file,
project, etc. as well as methods for executing jGRASP commands, accessing
parts of the jGRASP gui, etc.highlightItem
- element to be highlighted while the command
executes.String getMenuName()
String getToolbarHint()
AutosizedIcon getToolbarIcon()
String getToolbarLabel()
boolean hasFlag(ToolAction.Flag f)
f
- the flag of interest.boolean showMenuItem()
boolean showToolbarItem()