org.eclipse.gef.internal.ui.rulers
Class RulerContextMenuProvider

java.lang.Object
  extended byorg.eclipse.jface.action.ContributionManager
      extended byorg.eclipse.jface.action.MenuManager
          extended byorg.eclipse.gef.ContextMenuProvider
              extended byorg.eclipse.gef.internal.ui.rulers.RulerContextMenuProvider
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem, org.eclipse.jface.action.IContributionManager, org.eclipse.jface.action.IMenuListener, org.eclipse.jface.action.IMenuManager

public class RulerContextMenuProvider
extends ContextMenuProvider


Constructor Summary
RulerContextMenuProvider(EditPartViewer viewer)
           
 
Method Summary
 void buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
          Called when the menu is about to show.
 
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

RulerContextMenuProvider

public RulerContextMenuProvider(EditPartViewer viewer)
Method Detail

buildContextMenu

public void buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
Description copied from class: ContextMenuProvider
Called when the menu is about to show. Subclasses must implement this method to populate the menu each time it is shown.

Specified by:
buildContextMenu in class ContextMenuProvider
Parameters:
menu - this parameter is actually this object