|
||||||||||
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.gef.ui.palette.PaletteContextMenuProvider
Provides the context menu for a palette.
Constructor Summary | |
PaletteContextMenuProvider(PaletteViewer palette)
Constructor |
Method Summary | |
void |
buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
This is the method that builds the context menu. |
protected PaletteViewer |
getPaletteViewer()
|
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, 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, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, markDirty, 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, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll |
Methods inherited from interface org.eclipse.jface.action.IContributionItem |
isDirty |
Constructor Detail |
public PaletteContextMenuProvider(PaletteViewer palette)
palette
- the palette viewer for which the context menu has to be createdMethod Detail |
protected PaletteViewer getPaletteViewer()
public void buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
buildContextMenu
in class ContextMenuProvider
menu
- The IMenuManager to which actions for the palette's context menu can
be added.ContextMenuProvider.buildContextMenu(org.eclipse.jface.action.IMenuManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |