org.eclipse.gef
Class ContextMenuProvider
java.lang.Object
|
+--org.eclipse.jface.action.ContributionManager
|
+--org.eclipse.jface.action.MenuManager
|
+--org.eclipse.gef.ContextMenuProvider
- All Implemented Interfaces:
- IContributionItem, IContributionManager, IMenuListener, IMenuManager
- Direct Known Subclasses:
- PaletteContextMenuProvider
- public abstract class ContextMenuProvider
- extends MenuManager
- implements IMenuListener
Extends MenuManager to allow building the context menu directly.
Methods inherited from class org.eclipse.jface.action.MenuManager |
addMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getMenu, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isEnabled, isGroupMarker, isSeparator, isSubstituteFor, isVisible, removeMenuListener, 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, insert, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, itemAdded, itemRemoved, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, 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, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll |
ContextMenuProvider
public ContextMenuProvider(EditPartViewer viewer)
buildContextMenu
public abstract void buildContextMenu(IMenuManager menu)
getViewer
protected EditPartViewer getViewer()
menuAboutToShow
public void menuAboutToShow(IMenuManager menu)
- Specified by:
menuAboutToShow
in interface IMenuListener
setViewer
protected void setViewer(EditPartViewer viewer)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.