|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.emf.edit.ui.action.DelegatingCommandAction
This class wraps an IActionDelegate
, e.g., a CommandAction
, to make it into an Action
.
Even if the action delegate implements IActionDelegate2
, this class will still ony 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).
Field Summary | |
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. |
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
DelegatingCommandAction(IActionDelegate actionDelegate)
This constructs an instance. |
|
DelegatingCommandAction(IEditorActionDelegate editorActionDelegate)
This constructor is simply retained for binary compatibility. |
Method Summary | |
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(org.eclipse.ui.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)
|
Methods inherited from class org.eclipse.jface.action.AbstractAction |
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
addPropertyChangeListener, removePropertyChangeListener |
Field Detail |
protected IActionDelegate actionDelegate
protected IEditorActionDelegate editorActionDelegate
actionDelegate
.
protected IWorkbenchPart workbenchPart
protected IEditorPart editorPart
workbenchPart
.
Constructor Detail |
public DelegatingCommandAction(IActionDelegate actionDelegate)
public DelegatingCommandAction(IEditorActionDelegate editorActionDelegate)
new form
.
Method Detail |
public void selectionChanged(SelectionChangedEvent event)
selectionChanged
in interface ISelectionChangedListener
public void selectionChanged(IWorkbenchPart part, ISelection selection)
selectionChanged
in interface ISelectionListener
protected void selectionChanged(ISelection selection)
protected void handleSelection(ISelection selection)
protected void registerSelectionListener(IWorkbenchPart workbenchPart)
protected void registerSelectionListener(IEditorPart editorPart)
registerSelectionListener
.
protected void unregisterSelectionListener(IWorkbenchPart workbenchPart)
protected void unregisterSelectionListener(IEditorPart editorPart)
unregisterSelectionListener
.
public void setActiveEditor(IEditorPart editorPart)
setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart)
.
public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)
public void run()
run
in interface IAction
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |