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 TypeMethodDescriptionvoidcontributeObjectActionIdOverrides(List actionIdOverrides) Contribute to the list the action identifiers from other contributions that this contribution wants to override.booleancontributeObjectActions(IWorkbenchPart part, IMenuManager menu, ISelectionProvider selProv, List actionIdOverrides) Implement this method to add actions that deal with the currently selected object or objects.booleancontributeObjectMenus(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:
trueif any contributions were made, andfalseotherwise.
-
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:
trueif any contributions were made, andfalseotherwise.
-
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.
-