Package org.oddjob.monitor.view
Class ExplorerEditActions
java.lang.Object
org.oddjob.arooa.design.actions.EditActionsContributor
org.oddjob.monitor.view.ExplorerEditActions
- All Implemented Interfaces:
ActionContributor,SelectedContextAware
A Set of edit actions that contribute to the menu and become
enabled/disabled dependent on job selection.
The actions forward to the actual edit actions in the underlying components action map (in explorers case, the trees action map). Disabling/Enabling is not passed to the underlying actions so they will always respond to key strokes.
- Author:
- rob
-
Field Summary
Fields inherited from class org.oddjob.arooa.design.actions.EditActionsContributor
EDIT_GROUP, EDIT_MENU_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprepare()Called after the job has been selected, but before any action is to be performed.voidsetSelectedContext(ExplorerContext context) Called when the job selection changes.Methods inherited from class org.oddjob.arooa.design.actions.EditActionsContributor
addKeyStrokes, contributeTo, setCopyEnabled, setCutEnabled, setDeleteEnabled, setPasteEnabled
-
Constructor Details
-
ExplorerEditActions
public ExplorerEditActions()
-
-
Method Details
-
setSelectedContext
Description copied from interface:SelectedContextAwareCalled when the job selection changes. This is generally used to capture the new context and also clear any previous state for the last context.- Specified by:
setSelectedContextin interfaceSelectedContextAware- Parameters:
context- The context. Will never be null.
-
prepare
public void prepare()Description copied from interface:SelectedContextAwareCalled after the job has been selected, but before any action is to be performed. This is normally just before a menu is to be shown.- Specified by:
preparein interfaceSelectedContextAware
-