|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides services related to the menu architecture within the workbench. It can be used to contribute additional items to the menu, tool bar and status line.
This interface should not be implemented or extended by clients.
Method Summary | |
---|---|
void |
addContributionFactory(AbstractContributionFactory factory)
Contribute and initialize the contribution factory. |
IEvaluationContext |
getCurrentState()
Get the current state of eclipse as seen by the menu service. |
void |
populateContributionManager(ContributionManager mgr,
String location)
Populate a ContributionManager at the specified starting
location with a set of IContributionItems s. |
void |
releaseContributions(ContributionManager mgr)
Before calling dispose() on a ContributionManager populated by the menu service, you must inform the menu service to release its contributions. |
void |
removeContributionFactory(AbstractContributionFactory factory)
Remove the contributed factory from the menu service. |
Methods inherited from interface org.eclipse.ui.services.IServiceWithSources |
---|
addSourceProvider, removeSourceProvider |
Methods inherited from interface org.eclipse.ui.services.IDisposable |
---|
dispose |
Method Detail |
public void addContributionFactory(AbstractContributionFactory factory)
Note: In 3.3M4, this will make the factory available for any
following calls to
populateContributionManager(ContributionManager, String)
, but
it will not add those contributions to already populated managers.
factory
- the contribution factory. Must not be null
public void removeContributionFactory(AbstractContributionFactory factory)
Note:In 3.3M4, this factory will no longer be called during
populateContributionManager(ContributionManager, String)
calls,
but outstanding contributions will not be removed from populated
contribution managers.
factory
- the contribution factory to remove. Must not be
null
.public void populateContributionManager(ContributionManager mgr, String location)
ContributionManager
at the specified starting
location with a set of IContributionItems
s. It applies
AbstractContributionFactory
s that are stored against the
provided location.
mgr
- The ContributionManager to populatelocation
- The starting location to begin populating this contribution
manager. The format is the Menu API URI format.releaseContributions(ContributionManager)
public void releaseContributions(ContributionManager mgr)
mgr
- The manager that was populated by a call to
populateContributionManager(ContributionManager, String)
public IEvaluationContext getCurrentState()
ISources
|
Eclipse Platform Release 3.3 |
|||||||||||
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. and others 2000, 2007. All rights reserved.