Package org.eclipse.gef.ui.palette
Class PaletteContextMenuProvider
java.lang.Object
org.eclipse.jface.action.ContributionManager
org.eclipse.jface.action.MenuManager
org.eclipse.gef.ContextMenuProvider
org.eclipse.gef.ui.palette.PaletteContextMenuProvider
- All Implemented Interfaces:
- IContributionItem,- IContributionManager,- IMenuListener,- IMenuManager
Provides the context menu for a palette.
- 
Field SummaryFields inherited from class org.eclipse.jface.action.MenuManagerMANAGER_KEY, visible
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbuildContextMenu(IMenuManager menu) This is the method that builds the context menu.protected PaletteViewerMethods inherited from class org.eclipse.gef.ContextMenuProvidergetViewer, menuAboutToShow, setViewerMethods inherited from class org.eclipse.jface.action.MenuManageraddMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, doItemFill, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getImageDescriptor, getMenu, getMenuItem, getMenuItemCount, getMenuItems, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isEnabled, isGroupMarker, isSeparator, isSubstituteFor, isVisible, markDirty, menuExist, removeMenuListener, saveWidgetState, setActionDefinitionId, setImageDescriptor, setMenuText, setOverrides, setParent, setRemoveAllWhenShown, setVisible, toString, update, update, update, update, updateAllMethods inherited from class org.eclipse.jface.action.ContributionManageradd, 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, setDirtyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionItemisDirtyMethods inherited from interface org.eclipse.jface.action.IContributionManageradd, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll
- 
Constructor Details- 
PaletteContextMenuProviderConstructor- Parameters:
- palette- the palette viewer for which the context menu has to be created
 
 
- 
- 
Method Details- 
getPaletteViewer- Returns:
- the palette viewer
 
- 
buildContextMenuThis is the method that builds the context menu.- Specified by:
- buildContextMenuin class- ContextMenuProvider
- Parameters:
- menu- The IMenuManager to which actions for the palette's context menu can be added.
- See Also:
 
 
-