public class ExplorerEditActions extends EditActionsContributor implements SelectedContextAware
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.
EDIT_GROUP, EDIT_MENU_ID
Constructor and Description |
---|
ExplorerEditActions() |
Modifier and Type | Method and Description |
---|---|
void |
prepare()
Called after the job has been selected, but before any action is
to be performed.
|
void |
setSelectedContext(ExplorerContext context)
Called when the job selection changes.
|
addKeyStrokes, contributeTo, setCopyEnabled, setCutEnabled, setDeleteEnabled, setPasteEnabled
public void setSelectedContext(ExplorerContext context)
SelectedContextAware
setSelectedContext
in interface SelectedContextAware
context
- The context. Will never be null.public void prepare()
SelectedContextAware
prepare
in interface SelectedContextAware