|
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.eclipse.gef.ContextMenuProvider
org.topcased.modeler.editor.ModelerContextMenuProvider
public class ModelerContextMenuProvider
Provide a Context Menu for the Modeler with standards actions
Field Summary |
---|
Fields inherited from class org.eclipse.jface.action.MenuManager |
---|
visible |
Constructor Summary | |
---|---|
ModelerContextMenuProvider(org.eclipse.gef.EditPartViewer viewer,
org.eclipse.gef.ui.actions.ActionRegistry registry)
Constructs a context menu for the specified EditPartViewer and the Actions registered in the ActionRegistry |
Method Summary | |
---|---|
protected org.eclipse.jface.action.IMenuManager |
buildAlignmentMenu()
|
void |
buildContextMenu(org.eclipse.jface.action.IMenuManager manager)
Called when the menu is about to show. |
protected org.eclipse.jface.action.IMenuManager |
buildGraphicPropertiesMenu()
|
protected org.eclipse.gef.ui.actions.ActionRegistry |
getActionRegistry()
Returns the ActionRegistry |
protected void |
setActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry registry)
Set the ActionRegistry for this ContextMenuProvider |
Methods inherited from class org.eclipse.gef.ContextMenuProvider |
---|
getViewer, menuAboutToShow, setViewer |
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.IContributionManager |
---|
add, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll |
Methods inherited from interface org.eclipse.jface.action.IContributionItem |
---|
isDirty |
Constructor Detail |
---|
public ModelerContextMenuProvider(org.eclipse.gef.EditPartViewer viewer, org.eclipse.gef.ui.actions.ActionRegistry registry)
viewer
- the EditPartViewerregistry
- the ActionRegistryMethod Detail |
---|
public void buildContextMenu(org.eclipse.jface.action.IMenuManager manager)
buildContextMenu
in class org.eclipse.gef.ContextMenuProvider
ContextMenuProvider.buildContextMenu(org.eclipse.jface.action.IMenuManager)
protected org.eclipse.jface.action.IMenuManager buildGraphicPropertiesMenu()
protected org.eclipse.jface.action.IMenuManager buildAlignmentMenu()
protected org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
protected void setActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry registry)
registry
- the ActionRegistry
|
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.