public class PaletteContextMenuProvider extends ContextMenuProvider
visible| Constructor and Description |
|---|
PaletteContextMenuProvider(PaletteViewer palette)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildContextMenu(IMenuManager menu)
This is the method that builds the context menu.
|
protected PaletteViewer |
getPaletteViewer() |
getViewer, menuAboutToShow, setVieweraddMenuListener, 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, updateAlladd, 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, setDirtyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAllisDirtypublic PaletteContextMenuProvider(PaletteViewer palette)
palette - the palette viewer for which the context menu has to be
createdprotected PaletteViewer getPaletteViewer()
public void buildContextMenu(IMenuManager menu)
buildContextMenu in class ContextMenuProvidermenu - The IMenuManager to which actions for the palette's context
menu can be added.ContextMenuProvider.buildContextMenu(org.eclipse.jface.action.IMenuManager)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.