Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.diagram.ui.providers
Class DiagramContributionItemProvider

java.lang.Object
  extended by 

org.eclipse.gmf.runtime.common.core.service.AbstractProvider
      extended by 

org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider
          extended by 
org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider
All Implemented Interfaces:
IProvider, org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionDescriptorReader, org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionItemProvider

public class DiagramContributionItemProvider
extends AbstractContributionItemProvider

The core diagram contribution item provider. It provides contributions generic to all diagram editors


Constructor Summary
DiagramContributionItemProvider ()
           
 
Method Summary
protected   IAction createAction (java.lang.String actionId, IWorkbenchPartDescriptor partDescriptor)
          Creates the action with the given id.
protected   IContributionItem createCustomContributionItem (java.lang.String customId, IWorkbenchPartDescriptor partDescriptor)
          Creates the custom contribution with the given id.
protected   IMenuManager createMenuManager (java.lang.String menuId, IWorkbenchPartDescriptor partDescriptor)
          Creates the menu manager with the given id.
 
Methods inherited from class org.eclipse.gmf.runtime.common.ui.services.action.contributionitem. AbstractContributionItemProvider
contributeToActionBars, contributeToPopupMenu, createActionGroup, disposeContributions, getAction, getAction, getActionFromRegistry, getActionGroup, getSelectedObject, getStructuredSelection, provides, setContributionDescriptor, updateActionBars
 
Methods inherited from class org.eclipse.gmf.runtime.common.core.service. AbstractProvider
addProviderChangeListener, fireProviderChange, removeProviderChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmf.runtime.common.core.service. IProvider
addProviderChangeListener, removeProviderChangeListener
 

Constructor Detail

DiagramContributionItemProvider

public DiagramContributionItemProvider()
Method Detail

createCustomContributionItem

protected 
IContributionItem createCustomContributionItem(java.lang.String customId,
                                                         IWorkbenchPartDescriptor partDescriptor)
Description copied from class: AbstractContributionItemProvider
Creates the custom contribution with the given id. By default, this method does nothing. Subclasses must override to provide their own implementation of custom contribution creation.

Overrides:
createCustomContributionItem in class AbstractContributionItemProvider
Parameters:
customId - The custom contribution id
partDescriptor - The workbench part descriptor
Returns:
The custom contribution with the given id

createMenuManager

protected 
IMenuManager createMenuManager(java.lang.String menuId,
                                         IWorkbenchPartDescriptor partDescriptor)
Description copied from class: AbstractContributionItemProvider
Creates the menu manager with the given id. By default, this method does nothing. Subclasses must override to provide their own implementation of menu manager creation.

Overrides:
createMenuManager in class AbstractContributionItemProvider
Parameters:
menuId - The menu manager id
partDescriptor - The workbench part descriptor
Returns:
The menu manager with the given id

createAction

protected 
IAction createAction(java.lang.String actionId,
                               IWorkbenchPartDescriptor partDescriptor)
Description copied from class: AbstractContributionItemProvider
Creates the action with the given id. By default, this method does nothing. Subclasses must override to provide their own implementation of action creation.

Overrides:
createAction in class AbstractContributionItemProvider
Parameters:
actionId - The action id
partDescriptor - The workbench part descriptor
Returns:
The action with the given id

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire