public class ExplorerJobActions extends java.lang.Object implements ActionContributor, SelectedContextAware
Constructor and Description |
---|
ExplorerJobActions(ExplorerAction[] actions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyStrokes(javax.swing.JComponent component)
Add the accelerator keys to the given component if applicable.
|
void |
contributeTo(ActionRegistry actionRegistry)
Contribute actions using the given registry.
|
void |
prepare()
Called after the job has been selected, but before any action is
to be performed.
|
void |
setSelectedContext(ExplorerContext context)
Called when the Model changes it's selected
node.
|
public ExplorerJobActions(ExplorerAction[] actions)
explorer
- The owning explorer.public void setSelectedContext(ExplorerContext context)
setSelectedContext
in interface SelectedContextAware
context
- The context. Will never be null.public void prepare()
SelectedContextAware
prepare
in interface SelectedContextAware
public void contributeTo(ActionRegistry actionRegistry)
ActionContributor
contributeTo
in interface ActionContributor
public void addKeyStrokes(javax.swing.JComponent component)
ActionContributor
addKeyStrokes
in interface ActionContributor