public class ControlAction extends CommandActionHandler
AddCommand
or RemoveCommand
.Modifier and Type | Class and Description |
---|---|
protected static class |
ControlAction.ControlResourceDialog
A save-type
resource dialog that attempts to create the specified resource and
load it, if it already exists. |
protected class |
ControlAction.SelfAffectingCommand |
Modifier and Type | Field and Description |
---|---|
protected EObject |
eObject |
protected IStructuredSelection |
selection |
command, domain
Constructor and Description |
---|
ControlAction() |
ControlAction(EditingDomain domain) |
Modifier and Type | Method and Description |
---|---|
protected Resource |
getResource() |
void |
run()
This simply execute the command.
|
void |
setActiveWorkbenchPart(IWorkbenchPart workbenchPart) |
boolean |
updateSelection(IStructuredSelection selection)
When the selection changes, this will call
CommandActionHandler.createCommand(java.util.Collection<?>) with the appropriate collection of selected objects. |
createCommand, getEditingDomain, setEditingDomain
protected IStructuredSelection selection
protected EObject eObject
public ControlAction(EditingDomain domain)
public ControlAction()
public boolean updateSelection(IStructuredSelection selection)
CommandActionHandler
CommandActionHandler.createCommand(java.util.Collection<?>)
with the appropriate collection of selected objects.updateSelection
in class CommandActionHandler
public void run()
CommandActionHandler
run
in class CommandActionHandler
protected Resource getResource()
public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)