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, setViewer
addMenuListener, 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, updateAll
add, 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, setDirty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll
isDirty
public 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 ContextMenuProvider
menu
- 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.