Package org.eclipse.ui.internal
Class ObjectActionContributorManager
java.lang.Object
org.eclipse.ui.internal.ObjectContributorManager
org.eclipse.ui.internal.ObjectActionContributorManager
- All Implemented Interfaces:
- IExtensionChangeHandler
This manager is used to populate a popup menu manager with actions for a
 given type.
- 
Field SummaryFields inherited from class org.eclipse.ui.internal.ObjectContributorManageradaptableLookup, contributorRecordSet, contributors, objectLookup, resourceAdapterLookup
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExtension(IExtensionTracker tracker, IExtension addedExtension) This method is called whenever an extension conforming to the extension point filter is being added to the registry.booleancontributeObjectActions(IWorkbenchPart part, IMenuManager popupMenu, ISelectionProvider selProv, Set<IObjectActionContributor> alreadyContributed) Contributes submenus and/or actions applicable to the selection in the provided viewer into the provided popup menu.static voidDisposes instance if it was createdprotected StringReturn the extension point id (local to org.eclipse.ui) that this manager is associated with.Returns the shared instance of this manager.Methods inherited from class org.eclipse.ui.internal.ObjectContributorManageraddContributorsFor, computeClassOrder, computeCombinedOrder, computeInterfaceOrder, dispose, flushLookup, getAdaptableContributors, getContributors, getContributors, getContributors, getObjectContributors, getResourceContributors, hasContributorsFor, isApplicableTo, isApplicableTo, registerContributor, removeCommonAdapters, removeExtension, unregisterAllContributors, unregisterContributor, unregisterContributors
- 
Constructor Details- 
ObjectActionContributorManagerpublic ObjectActionContributorManager()PopupMenuManager constructor.
 
- 
- 
Method Details- 
contributeObjectActionspublic boolean contributeObjectActions(IWorkbenchPart part, IMenuManager popupMenu, ISelectionProvider selProv, Set<IObjectActionContributor> alreadyContributed) Contributes submenus and/or actions applicable to the selection in the provided viewer into the provided popup menu.- Parameters:
- part- the part being contributed to
- popupMenu- the menu being contributed to
- selProv- the selection provider
- alreadyContributed- the set of contributors that already contributed to the menu
- Returns:
- whether anything was contributed
 
- 
getManagerReturns the shared instance of this manager.- Returns:
- the shared instance of this manager
 
- 
disposeManagerpublic static void disposeManager()Disposes instance if it was created
- 
addExtensionDescription copied from interface:IExtensionChangeHandlerThis method is called whenever an extension conforming to the extension point filter is being added to the registry. This method does not automatically register objects to the tracker.- Parameters:
- tracker- a tracker to which the handler has been registered
- addedExtension- the extension being added
 
- 
getExtensionPointFilterDescription copied from class:ObjectContributorManagerReturn the extension point id (local to org.eclipse.ui) that this manager is associated with. Default implementation returns null, which implies no relationship with a particular extension.- Overrides:
- getExtensionPointFilterin class- ObjectContributorManager
- Returns:
- the extension point id
 
 
-