pl.edu.agh.cast.schema.editor
Class SchemaEditorContextMenuProvider

java.lang.Object
  extended by org.eclipse.jface.action.ContributionManager
      extended by org.eclipse.jface.action.MenuManager
          extended by org.eclipse.gef.ContextMenuProvider
              extended by pl.edu.agh.cast.schema.editor.SchemaEditorContextMenuProvider
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 SchemaEditorContextMenuProvider
extends org.eclipse.gef.ContextMenuProvider

Context menu provider for the schema editor.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class org.eclipse.jface.action.MenuManager
visible
 
Constructor Summary
SchemaEditorContextMenuProvider(org.eclipse.gef.EditPartViewer viewer, org.eclipse.gef.ui.actions.ActionRegistry registry)
          Instantiate a new menu context provider for the specified EditPartViewer and ActionRegistry.
 
Method Summary
 void buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
          Called when the context 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, 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, 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, getSize, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, 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, prependToGroup, prependToGroup, remove, remove, removeAll
 
Methods inherited from interface org.eclipse.jface.action.IContributionItem
isDirty
 

Constructor Detail

SchemaEditorContextMenuProvider

public SchemaEditorContextMenuProvider(org.eclipse.gef.EditPartViewer viewer,
                                       org.eclipse.gef.ui.actions.ActionRegistry registry)
Instantiate a new menu context provider for the specified EditPartViewer and ActionRegistry.

Parameters:
viewer - the editor's graphical viewer
registry - the editor's action registry
Throws:
IllegalArgumentException - if registry is null.
Method Detail

buildContextMenu

public void buildContextMenu(org.eclipse.jface.action.IMenuManager menu)
Called when the context menu is about to show. Actions, whose state is enabled, will appear in the context menu.

Specified by:
buildContextMenu in class org.eclipse.gef.ContextMenuProvider
See Also:
ContextMenuProvider.buildContextMenu(org.eclipse.jface.action.IMenuManager)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.