Interface IObjectActionContributor

All Superinterfaces:
IObjectContributor
All Known Implementing Classes:
ObjectActionContributor

public interface IObjectActionContributor extends IObjectContributor
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 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, and false otherwise.
    • contributeObjectMenus

      boolean contributeObjectMenus(IMenuManager menu, ISelectionProvider selProv)
      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, and false otherwise.
    • contributeObjectActionIdOverrides

      void contributeObjectActionIdOverrides(List actionIdOverrides)
      Contribute to the list the action identifiers from other contributions that this contribution wants to override. Actions of these identifiers will not be contributed.