|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.action.ContributionManager
org.eclipse.jface.action.MenuManager
org.topcased.modeler.editor.outline.DefaultCreateChildMenu
public class DefaultCreateChildMenu
A default 'Create child' menu.
Creation : 24 nov. 2005
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.action.MenuManager |
|---|
visible |
| Constructor Summary | |
|---|---|
DefaultCreateChildMenu()
Constructor. |
|
| Method Summary | |
|---|---|
void |
createMenuContents()
Creates the actions and puts it in the context menu |
protected java.util.Collection |
generateCreateChildActions(MixedEditDomain domain,
java.util.Collection descriptors,
EObject selection)
This generates a CreateChildAction
for each object in descriptors, and returns the
collection of these actions. |
protected void |
populateManager(org.eclipse.jface.action.IContributionManager manager,
java.util.Collection actions,
java.lang.String contributionID)
This populates the specified manager with
ActionContributionItems based on the
IActions contained in the
actions collection, by inserting them before the specified
contribution item contributionID. |
void |
setMixedEditDomain(MixedEditDomain domain)
Set the EditDomain to use in the actions |
void |
setSelectedEObject(EObject object)
Set the current selected objects |
| Methods inherited from class org.eclipse.jface.action.MenuManager |
|---|
addMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getMenu, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isEnabled, isGroupMarker, isSeparator, isSubstituteFor, isVisible, markDirty, removeMenuListener, saveWidgetState, setOverrides, setParent, setRemoveAllWhenShown, setVisible, update, update, update, update, updateAll |
| Methods inherited from class org.eclipse.jface.action.ContributionManager |
|---|
add, add, allowItem, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getSize, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty |
| 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.IMenuManager |
|---|
addMenuListener, findMenuUsingPath, findUsingPath, getRemoveAllWhenShown, isEnabled, removeMenuListener, setRemoveAllWhenShown, updateAll |
| Methods inherited from interface org.eclipse.jface.action.IContributionManager |
|---|
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update |
| Methods inherited from interface org.eclipse.jface.action.IContributionItem |
|---|
dispose, fill, fill, fill, fill, getId, isDirty, isDynamic, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, update, update |
| Constructor Detail |
|---|
public DefaultCreateChildMenu()
| Method Detail |
|---|
public void setMixedEditDomain(MixedEditDomain domain)
ICreateChildMenu
setMixedEditDomain in interface ICreateChildMenudomain - the edit domainICreateChildMenu.setMixedEditDomain(org.topcased.modeler.editor.MixedEditDomain)public void setSelectedEObject(EObject object)
ICreateChildMenu
setSelectedEObject in interface ICreateChildMenuobject - the current EObjectICreateChildMenu.setSelectedEObject(org.eclipse.emf.ecore.EObject)public void createMenuContents()
ICreateChildMenu
createMenuContents in interface ICreateChildMenuICreateChildMenu.createMenuContents()
protected void populateManager(org.eclipse.jface.action.IContributionManager manager,
java.util.Collection actions,
java.lang.String contributionID)
manager with
ActionContributionItems based on the
IActions contained in the
actions collection, by inserting them before the specified
contribution item contributionID. If ID is
null, they are simply added.
manager - the menu to fillactions - the actions to addcontributionID - the position of the contribution
protected java.util.Collection generateCreateChildActions(MixedEditDomain domain,
java.util.Collection descriptors,
EObject selection)
CreateChildAction
for each object in descriptors, and returns the
collection of these actions.
domain - The modeler domaindescriptors - the child descriptorsselection - the selected object
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.