Eclipse GEF
3.0

org.eclipse.gef.ui.palette
Class PaletteContextMenuProvider

java.lang.Object
  extended byMenuManager
      extended byorg.eclipse.gef.ContextMenuProvider
          extended byorg.eclipse.gef.ui.palette.PaletteContextMenuProvider

public class PaletteContextMenuProvider
extends ContextMenuProvider

Provides the context menu for a palette.

See Also:
Serialized Form

Constructor Summary
PaletteContextMenuProvider(PaletteViewer palette)
          Constructor
 
Method Summary
 void buildContextMenu(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteContextMenuProvider

public PaletteContextMenuProvider(PaletteViewer palette)
Constructor

Parameters:
palette - the palette viewer for which the context menu has to be created
Method Detail

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)

Eclipse GEF
3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.