|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
org.eclipse.gmt.weaver.editors.GlobalWeaverEditorContributor
public class 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 org.eclipse.ui.IEditorPart |
activeEditorPart
|
protected java.util.Collection |
createChildActions
|
protected org.eclipse.jface.action.IMenuManager |
createChildMenuManager
|
protected java.util.Collection |
createSiblingActions
|
protected org.eclipse.jface.action.IMenuManager |
createSiblingMenuManager
|
protected org.eclipse.jface.action.IAction |
saveEcoreMetamodelAction
Action to save the weaving metamodel as ecore |
protected org.eclipse.jface.action.IAction |
saveKm3MetamodelAction
Action to save the weaving metamodel as ecore |
protected org.eclipse.jface.viewers.ISelectionProvider |
selectionProvider
|
protected org.eclipse.jface.action.IAction |
setParentNameAction
Action to set the parent name equals to the selected child |
protected org.eclipse.jface.action.IAction |
showPropertiesViewAction
Action for display the property view |
protected IWeaverMenuAdapter |
wMenuAdapter
|
Fields inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor |
---|
activeEditor, ADDITIONS_LAST_STYLE, controlAction, copyAction, cutAction, deleteAction, loadResourceAction, pasteAction, redoAction, style, undoAction, validateAction |
Constructor Summary | |
---|---|
GlobalWeaverEditorContributor()
This creates an instance the contributor. |
Method Summary | |
---|---|
protected void |
addGlobalActions(org.eclipse.jface.action.IMenuManager menuManager)
This inserts global actions before the "additions-end" separator. |
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
|
protected void |
depopulateManager(org.eclipse.jface.action.IContributionManager manager,
java.util.Collection actions)
This removes from the specified manager all ActionContributionItem s based on the
IAction s contained in the
actions collection |
protected java.util.Collection |
generateCreateChildActions(java.util.Collection descriptors,
org.eclipse.jface.viewers.ISelection selection)
This generates a CreateChildAction for each object in descriptors,
and returns the collection of these actions. |
protected java.util.Collection |
generateCreateSiblingActions(java.util.Collection descriptors,
org.eclipse.jface.viewers.ISelection selection)
This generates a CreateSiblingAction for each object in descriptors,
and returns the collection of these actions. |
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
This populates the pop-up menu before it appears |
protected void |
populateManager(org.eclipse.jface.action.IContributionManager manager,
java.util.Collection actions,
java.lang.String contributionID)
This populates the specified manager with ActionContributionItem s
based on the IAction s contained in the actions collection,
by inserting them before the specified contribution item contributionID. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
void |
setActiveEditor(org.eclipse.ui.IEditorPart part)
|
Methods inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor |
---|
activate, contributeToStatusLine, contributeToToolBar, createCopyAction, createCutAction, createDeleteAction, createPasteAction, createRedoAction, createUndoAction, deactivate, getActiveEditor, init, propertyChanged, removeAllReferencesOnDelete, setActivePage, setActiveView, shareGlobalActions, update |
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
---|
contributeToCoolBar, dispose, getActionBars, getPage, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.ui.IEditorPart activeEditorPart
protected org.eclipse.jface.viewers.ISelectionProvider selectionProvider
protected java.util.Collection createChildActions
protected org.eclipse.jface.action.IMenuManager createChildMenuManager
protected java.util.Collection createSiblingActions
protected org.eclipse.jface.action.IMenuManager createSiblingMenuManager
protected IWeaverMenuAdapter wMenuAdapter
protected org.eclipse.jface.action.IAction showPropertiesViewAction
protected org.eclipse.jface.action.IAction setParentNameAction
protected org.eclipse.jface.action.IAction saveKm3MetamodelAction
protected org.eclipse.jface.action.IAction saveEcoreMetamodelAction
Constructor Detail |
---|
public GlobalWeaverEditorContributor()
Method Detail |
---|
public void setActiveEditor(org.eclipse.ui.IEditorPart part)
setActiveEditor
in interface org.eclipse.ui.IEditorActionBarContributor
setActiveEditor
in class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
public void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
contributeToMenu
in class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
protected void depopulateManager(org.eclipse.jface.action.IContributionManager manager, java.util.Collection actions)
ActionContributionItem
s based on the
IAction
s contained in the
actions collection
manager
- actions
- contributionID
- protected void populateManager(org.eclipse.jface.action.IContributionManager manager, java.util.Collection actions, java.lang.String contributionID)
ActionContributionItem
s
based on the 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(org.eclipse.jface.action.IMenuManager menuManager)
menuAboutToShow
in interface org.eclipse.jface.action.IMenuListener
menuAboutToShow
in class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
menuManager
- protected void addGlobalActions(org.eclipse.jface.action.IMenuManager menuManager)
addGlobalActions
in class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
menuManager
- protected java.util.Collection generateCreateChildActions(java.util.Collection descriptors, org.eclipse.jface.viewers.ISelection selection)
CreateChildAction
for each object in descriptors,
and returns the collection of these actions.
descriptors
- selection
-
protected java.util.Collection generateCreateSiblingActions(java.util.Collection descriptors, org.eclipse.jface.viewers.ISelection selection)
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 |