|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEditingDomainActionBarContributor
org.eclipse.weaver.editors.GlobalWeaverEditorContributor
Manages the installation/deinstallation of global actions for multi-page editors. Responsible for the redirection of global actions to the active editor. Multi-page contributor replaces the contributors for the individual editors in the multi-page editor.
Field Summary | |
protected IEditorPart |
activeEditorPart
|
protected java.util.Collection |
createChildActions
|
protected IMenuManager |
createChildMenuManager
|
protected java.util.Collection |
createSiblingActions
|
protected IMenuManager |
createSiblingMenuManager
|
protected IAction |
saveEcoreMetamodelAction
Action to save the weaving metamodel as ecore |
protected IAction |
saveKm3MetamodelAction
Action to save the weaving metamodel as ecore |
protected ISelectionProvider |
selectionProvider
|
protected IAction |
showPropertiesViewAction
Action for display the property view |
protected IWeaverMenuAdapter |
wMenuAdapter
|
Constructor Summary | |
GlobalWeaverEditorContributor()
This creates an instance the contributor. |
Method Summary | |
protected void |
addGlobalActions(IMenuManager menuManager)
This inserts global actions before the "additions-end" separator. |
void |
contributeToMenu(IMenuManager menuManager)
|
protected void |
depopulateManager(IContributionManager manager,
java.util.Collection actions)
This removes from the specified manager all org.eclipse.jface.action.ActionContributionItem s based on the
org.eclipse.jface.action.IAction s contained in the
actions collection |
protected java.util.Collection |
generateCreateChildActions(java.util.Collection descriptors,
ISelection selection)
This generates a org.eclipse.emf.edit.ui.action.CreateChildAction for each object in descriptors,
and returns the collection of these actions. |
protected java.util.Collection |
generateCreateSiblingActions(java.util.Collection descriptors,
ISelection selection)
This generates a org.eclipse.emf.edit.ui.action.CreateSiblingAction for each object in descriptors,
and returns the collection of these actions. |
void |
menuAboutToShow(IMenuManager menuManager)
This populates the pop-up menu before it appears |
protected void |
populateManager(IContributionManager manager,
java.util.Collection actions,
java.lang.String contributionID)
This populates the specified manager with org.eclipse.jface.action.ActionContributionItem s
based on the org.eclipse.jface.action.IAction s contained in the actions collection,
by inserting them before the specified contribution item contributionID.
|
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setActiveEditor(IEditorPart part)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IEditorPart activeEditorPart
protected ISelectionProvider selectionProvider
protected java.util.Collection createChildActions
protected IMenuManager createChildMenuManager
protected java.util.Collection createSiblingActions
protected IMenuManager createSiblingMenuManager
protected IWeaverMenuAdapter wMenuAdapter
protected IAction showPropertiesViewAction
protected IAction saveKm3MetamodelAction
protected IAction saveEcoreMetamodelAction
Constructor Detail |
public GlobalWeaverEditorContributor()
Method Detail |
public void setActiveEditor(IEditorPart part)
public void contributeToMenu(IMenuManager menuManager)
public void selectionChanged(SelectionChangedEvent event)
protected void depopulateManager(IContributionManager manager, java.util.Collection actions)
org.eclipse.jface.action.ActionContributionItem
s based on the
org.eclipse.jface.action.IAction
s contained in the
actions collection
manager
- actions
- protected void populateManager(IContributionManager manager, java.util.Collection actions, java.lang.String contributionID)
org.eclipse.jface.action.ActionContributionItem
s
based on the org.eclipse.jface.action.IAction
s contained in the actions collection,
by inserting them before the specified contribution item contributionID.
If ID is null, they are simply added.
manager
- actions
- contributionID
- public void menuAboutToShow(IMenuManager menuManager)
menuManager
- protected void addGlobalActions(IMenuManager menuManager)
menuManager
- protected java.util.Collection generateCreateChildActions(java.util.Collection descriptors, ISelection selection)
org.eclipse.emf.edit.ui.action.CreateChildAction
for each object in descriptors,
and returns the collection of these actions.
descriptors
- selection
-
protected java.util.Collection generateCreateSiblingActions(java.util.Collection descriptors, ISelection selection)
org.eclipse.emf.edit.ui.action.CreateSiblingAction
for each object in descriptors,
and returns the collection of these actions.
descriptors
- selection
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |