Class SubActionBars2

All Implemented Interfaces:
IActionBars, IActionBars2

public class SubActionBars2 extends SubActionBars implements IActionBars2
A implementation of the extended IActionBars2 interface. This sub class provides a sub cool bar manager for plugins to contribute multiple cool items.
Since:
3.0
  • Constructor Details

    • SubActionBars2

      public SubActionBars2(IActionBars2 parent)
      Constucts a sub action bars object using an IActionBars2 parent.
      Parameters:
      parent - the action bars to virtualize; must not be null.
    • SubActionBars2

      public SubActionBars2(IActionBars2 parent, IServiceLocator serviceLocator)
      Constucts a sub action bars object using an IActionBars2 parent.
      Parameters:
      parent - the action bars to virtualize; must not be null.
      serviceLocator - The service locator for this action bar; must not be null.
      Since:
      3.2
  • Method Details

    • getCastedParent

      protected IActionBars2 getCastedParent()
      Returns the casted parent of the sub action bars. This method can return an IActionBars2 since it can only accept IActionBars2 in the constructor.
      Returns:
      the casted parent.
    • createSubCoolBarManager

      protected SubCoolBarManager createSubCoolBarManager(ICoolBarManager parent)
      Returns a new sub coolbar manager.
      Parameters:
      parent - the parent coolbar manager
      Returns:
      the cool bar manager
    • getCoolBarManager

      public ICoolBarManager getCoolBarManager()
      Description copied from interface: IActionBars2
      Returns the cool bar manager.

      Note: Clients who add or remove items from the returned cool bar manager are responsible for calling updateActionBars so that the changes can be propagated throughout the workbench.

      Specified by:
      getCoolBarManager in interface IActionBars2
      Returns:
      the cool bar manager.
    • setActive

      protected void setActive(boolean value)
      Description copied from class: SubActionBars
      Activate / deactivate the contributions.
      Overrides:
      setActive in class SubActionBars
    • dispose

      public void dispose()
      Description copied from class: SubActionBars
      Dispose the contributions.
      Overrides:
      dispose in class SubActionBars