|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.core.service.Service
org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.ContributionItemService
public class ContributionItemService
A service for contributing items into different IWorkbenchPart
's
contribution managers: ActionBars and ContextMenu(s).
IContributionItemProvider
,
AbstractContributionItemProvider
Nested Class Summary | |
---|---|
protected static class |
ContributionItemService.ProviderDescriptor
A descriptor for IContributionItemProvider defined
by a configuration element. |
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Method Summary | |
---|---|
void |
contributeToActionBars(IActionBars actionBars,
IWorkbenchPart workbenchPart)
Makes contributions to the given actionBars that belong to the given part. |
void |
contributeToActionBars(IActionBars actionBars,
org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
|
void |
contributeToPopupMenu(IMenuManager popupMenu,
IWorkbenchPart workbenchPart)
|
void |
disposeContributions(IWorkbenchPart workbenchPart)
Disposes of the contributions that have been made to the workbenchPart . |
void |
disposeContributions(org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
|
static ContributionItemService |
getInstance()
Returns the single instanceo of the ContributionItemService . |
protected Service.ProviderDescriptor |
newProviderDescriptor(IConfigurationElement element)
Creates a new provider descriptor for the specified configuration element . |
void |
updateActionBars(IActionBars actionBars,
org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
|
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
addProvider, clearCache, configureProviders, configureProviders, createPriorityCache, execute, executeUnique, getAllProviders, getCachingKey, getPriority, getProviders, isOptimistic, isOptimized, providerChanged, provides, provides, removeProvider |
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, provides, removeProviderChangeListener |
Method Detail |
---|
public static ContributionItemService getInstance()
ContributionItemService
.
ContributionItemService
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
Service
element
.
newProviderDescriptor
in class Service
element
- The configuration element from which to create the descriptor.
public void contributeToActionBars(IActionBars actionBars, IWorkbenchPart workbenchPart)
actionBars
that belong to the given part.
actionBars
- the action barsworkbenchPart
- the workbench partcontributeToActionBars(IActionBars, IWorkbenchPartDescriptor)
public void contributeToActionBars(IActionBars actionBars, org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
contributeToActionBars
in interface org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionItemProvider
public void contributeToPopupMenu(IMenuManager popupMenu, IWorkbenchPart workbenchPart)
contributeToPopupMenu
in interface org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionItemProvider
public void disposeContributions(org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
disposeContributions
in interface org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionItemProvider
public void updateActionBars(IActionBars actionBars, org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor workbenchPartDescriptor)
updateActionBars
in interface org.eclipse.gmf.runtime.common.ui.services.action.internal.contributionitem.IContributionItemProvider
public void disposeContributions(IWorkbenchPart workbenchPart)
workbenchPart
.
workbenchPart
- the workbench part
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.