org.eclipse.gef.ui.palette
Class PaletteContextMenuProvider
java.lang.Object
MenuManager
org.eclipse.gef.ContextMenuProvider
org.eclipse.gef.ui.palette.PaletteContextMenuProvider
- public class PaletteContextMenuProvider
- extends ContextMenuProvider
Provides the context menu for a palette.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaletteContextMenuProvider
public PaletteContextMenuProvider(PaletteViewer palette)
- Constructor
- Parameters:
palette - the palette viewer for which the context menu has to be created
getPaletteViewer
protected PaletteViewer getPaletteViewer()
- Returns:
- the palette viewer
buildContextMenu
public void buildContextMenu(IMenuManager menu)
- This is the method that builds the context menu.
- Specified by:
buildContextMenu in class ContextMenuProvider
- Parameters:
menu - The IMenuManager to which actions for the palette's context menu can
be added.- See Also:
ContextMenuProvider#buildContextMenu(org.eclipse.jface.action.IMenuManager)
Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.