|
Runtime | ||||||||||
| 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.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
An implementation of a context menu provider for GMF diagrams It adds contributions to the popup menu both programatically and through the contribution item service
ContributionItemService| Constructor Summary | |
DiagramContextMenuProvider(IWorkbenchPart part,
EditPartViewer viewer)
Constructor for DiagramContextMenuProvider. |
|
| Method Summary | |
protected void |
addDefaultExclusions()
Transfer the String array defaultExclusionList
into the exclusionSet |
protected boolean |
allowItem(IContributionItem itemToAdd)
|
void |
buildContextMenu(IMenuManager menu)
|
ActionRegistry |
getActionRegistry()
Returns the actionRegistry. |
java.util.Set |
getExclusionSet()
The exclusion Set allows clients to specify which contributed
menu items they do not want to include in their context menus. |
void |
setExclusionSet(java.util.Set exclusionSet)
set the exclusion Set. |
| 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, appendToGroup, appendToGroup, dumpStatistics, find, getItems, 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 DiagramContextMenuProvider(IWorkbenchPart part,
EditPartViewer viewer)
part - viewer - | Method Detail |
public ActionRegistry getActionRegistry()
public void buildContextMenu(IMenuManager menu)
ContextMenuProvider.buildContextMenu(IMenuManager)public java.util.Set getExclusionSet()
Set allows clients to specify which contributed
menu items they do not want to include in their context menus.
Set of IDspublic void setExclusionSet(java.util.Set exclusionSet)
Set.
exclusionSet - the Set of IDs of menu items that need to be
excluded from the context menuDiagramContextMenuProvider.getExclusionSet()protected boolean allowItem(IContributionItem itemToAdd)
protected void addDefaultExclusions()
defaultExclusionList
into the exclusionSet
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.