|
|||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
This is a contributor for an editor, multipage or otherwise,
that implements IEditingDomainProvider
.
It automatically hooks up the Undo, Redo, Cut, Copy, Paste, and Delete actions on the Edit menu
to the corresponding commands supported by the EditingDomain
.
The editor site'selection provider is used to keep the Cut, Copy, Paste, and Delete actions up-to-date.
The actions are also refreshed everytime the editor fires to its IPropertyListener
s.
Another very useful feature of this contributor is that it can be used as follows:
((IMenuListener)((IEditorSite)getSite()).getActionBarContributor()).menuAboutToShow(menuManager);to contribute the Edit menu actions to a popup menu.
Field Summary | |
protected org.eclipse.ui.IEditorPart |
activeEditor
This keeps track of the current editor part. |
protected CopyAction |
copyAction
This is the action used to implement copy. |
protected CutAction |
cutAction
This is the action used to implement cut. |
protected DeleteAction |
deleteAction
This is the action used to implement delete. |
protected PasteAction |
pasteAction
This is the action used to implement paste. |
protected RedoAction |
redoAction
This is the action used to implement redo. |
protected UndoAction |
undoAction
This is the action used to implement undo. |
Constructor Summary | |
EditingDomainActionBarContributor()
This creates an instance the contributor. |
Method Summary | |
void |
activate()
|
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
|
void |
contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
|
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
|
void |
deactivate()
|
void |
init(org.eclipse.ui.IActionBars actionBars)
|
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
This implements org.eclipse.jface.action.IMenuListener to help fill the context menus with contributions from the Edit menu. |
void |
propertyChanged(java.lang.Object source,
int id)
|
void |
setActiveEditor(org.eclipse.ui.IEditorPart part)
|
void |
setActivePage(org.eclipse.ui.IEditorPart part)
|
void |
setActiveView(org.eclipse.ui.IViewPart part)
Deprecated. |
void |
shareGlobalActions(org.eclipse.ui.part.IPage page,
org.eclipse.ui.IActionBars actionBars)
|
void |
update()
|
Field Detail |
protected org.eclipse.ui.IEditorPart activeEditor
protected DeleteAction deleteAction
protected CutAction cutAction
protected CopyAction copyAction
protected PasteAction pasteAction
protected UndoAction undoAction
protected RedoAction redoAction
Constructor Detail |
public EditingDomainActionBarContributor()
Method Detail |
public void init(org.eclipse.ui.IActionBars actionBars)
public void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
public void contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
public void shareGlobalActions(org.eclipse.ui.part.IPage page, org.eclipse.ui.IActionBars actionBars)
public void setActiveView(org.eclipse.ui.IViewPart part)
public void setActiveEditor(org.eclipse.ui.IEditorPart part)
public void setActivePage(org.eclipse.ui.IEditorPart part)
public void deactivate()
public void activate()
public void update()
public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
org.eclipse.jface.action.IMenuListener
to help fill the context menus with contributions from the Edit menu.public void propertyChanged(java.lang.Object source, int id)
propertyChanged
in interface org.eclipse.ui.IPropertyListener
|
Copyright 2001-2002 IBM Corporation and others. All Rights Reserved. |
||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |