Package org.eclipse.ui.internal
Interface IObjectActionContributor
- All Superinterfaces:
IObjectContributor
- All Known Implementing Classes:
ObjectActionContributor
This interface must be implemented in order to contribute to context (pop-up)
menu for an object. Classes that implement this interface must register with
the popup menu manager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contributeObjectActionIdOverrides
(List actionIdOverrides) Contribute to the list the action identifiers from other contributions that this contribution wants to override.boolean
contributeObjectActions
(IWorkbenchPart part, IMenuManager menu, ISelectionProvider selProv, List actionIdOverrides) Implement this method to add actions that deal with the currently selected object or objects.boolean
contributeObjectMenus
(IMenuManager menu, ISelectionProvider selProv) Implement this method to add menus that deal with the currently selected object or objects.Methods inherited from interface org.eclipse.ui.internal.IObjectContributor
canAdapt, isApplicableTo
-
Method Details
-
contributeObjectActions
boolean contributeObjectActions(IWorkbenchPart part, IMenuManager menu, ISelectionProvider selProv, List actionIdOverrides) Implement this method to add actions that deal with the currently selected object or objects. Actions should be added to the provided menu object. Current selection can be obtained from the given selection provider.- Returns:
true
if any contributions were made, andfalse
otherwise.
-
contributeObjectMenus
Implement this method to add menus that deal with the currently selected object or objects. Menus should be added to the provided menu object. Current selection can be obtained from the given selection provider.- Returns:
true
if any contributions were made, andfalse
otherwise.
-
contributeObjectActionIdOverrides
Contribute to the list the action identifiers from other contributions that this contribution wants to override. Actions of these identifiers will not be contributed.
-