org.eclipse.emf.edit.ui.action
Class DelegatingCommandAction
org.eclipse.emf.edit.ui.action.DelegatingCommandAction
- All Implemented Interfaces:
- org.eclipse.ui.ISelectionListener
- public class DelegatingCommandAction
- implements org.eclipse.ui.ISelectionListener
This class wraps an IEditorActionDelegate
, e.g., a CommandAction
, to make it into an Action
.
Field Summary |
protected org.eclipse.ui.IEditorActionDelegate |
editorActionDelegate
This is the delegate; |
protected org.eclipse.ui.IEditorPart |
editorPart
This is the current editor. |
Constructor Summary |
DelegatingCommandAction(org.eclipse.ui.IEditorActionDelegate editorActionDelegate)
This constructs an instance. |
editorActionDelegate
protected org.eclipse.ui.IEditorActionDelegate editorActionDelegate
- This is the delegate;
editorPart
protected org.eclipse.ui.IEditorPart editorPart
- This is the current editor.
DelegatingCommandAction
public DelegatingCommandAction(org.eclipse.ui.IEditorActionDelegate editorActionDelegate)
- This constructs an instance.
selectionChanged
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.ISelectionListener
selectionChanged
protected void selectionChanged(org.eclipse.jface.viewers.ISelection selection)
handleSelection
protected void handleSelection(org.eclipse.jface.viewers.ISelection selection)
registerSelectionListener
protected void registerSelectionListener(org.eclipse.ui.IEditorPart editorPart)
unregisterSelectionListener
protected void unregisterSelectionListener(org.eclipse.ui.IEditorPart editorPart)
setActiveEditor
public void setActiveEditor(org.eclipse.ui.IEditorPart editorPart)
run
public void run()