public class DelegatingCommandAction
extends Action
IActionDelegate
, e.g., a CommandAction
, to make it into an Action
.
Even if the action delegate implements IActionDelegate2
, this class will still only use the older interface
(i.e. it will not call init
, runWithEvent
, or dispose
, since it does not have the information required
to do so).Modifier and Type | Field and Description |
---|---|
protected IActionDelegate |
actionDelegate
This is the action delegate we're wrapping.
|
protected IEditorActionDelegate |
editorActionDelegate
Deprecated.
As of EMF 2.1.0, replaced by
actionDelegate . |
protected IEditorPart |
editorPart
Deprecated.
As of EMF 2.1.0, replaced by
workbenchPart . |
protected IWorkbenchPart |
workbenchPart
This is the current workbench part.
|
Constructor and Description |
---|
DelegatingCommandAction(IActionDelegate actionDelegate)
This constructs an instance.
|
DelegatingCommandAction(IEditorActionDelegate editorActionDelegate)
This constructor is simply retained for binary compatibility.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleSelection(ISelection selection) |
protected void |
registerSelectionListener(IEditorPart editorPart)
Deprecated.
As of EMF 2.1.0, replaced by
registerSelectionListener . |
protected void |
registerSelectionListener(IWorkbenchPart workbenchPart) |
void |
run() |
protected void |
selectionChanged(ISelection selection) |
void |
selectionChanged(IWorkbenchPart part,
ISelection selection) |
void |
selectionChanged(SelectionChangedEvent event) |
void |
setActiveEditor(IEditorPart editorPart)
Deprecated.
As of EMF 2.1.0, replaced by
setActiveWorkbenchPart(IWorkbenchPart) . |
void |
setActiveWorkbenchPart(IWorkbenchPart workbenchPart) |
protected void |
unregisterSelectionListener(IEditorPart editorPart)
Deprecated.
As of EMF 2.1.0, replaced by
unregisterSelectionListener . |
protected void |
unregisterSelectionListener(IWorkbenchPart workbenchPart) |
protected IActionDelegate actionDelegate
@Deprecated protected IEditorActionDelegate editorActionDelegate
actionDelegate
.protected IWorkbenchPart workbenchPart
@Deprecated protected IEditorPart editorPart
workbenchPart
.public DelegatingCommandAction(IActionDelegate actionDelegate)
public DelegatingCommandAction(IEditorActionDelegate editorActionDelegate)
new form
.public void selectionChanged(SelectionChangedEvent event)
public void selectionChanged(IWorkbenchPart part, ISelection selection)
protected void selectionChanged(ISelection selection)
protected void handleSelection(ISelection selection)
protected void registerSelectionListener(IWorkbenchPart workbenchPart)
@Deprecated protected void registerSelectionListener(IEditorPart editorPart)
registerSelectionListener
.protected void unregisterSelectionListener(IWorkbenchPart workbenchPart)
@Deprecated protected void unregisterSelectionListener(IEditorPart editorPart)
unregisterSelectionListener
.@Deprecated public void setActiveEditor(IEditorPart editorPart)
setActiveWorkbenchPart(IWorkbenchPart)
.public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)
public void run()