Class WWinPluginPulldown

All Implemented Interfaces:
EventListener, IAction, ISelectionChangedListener, IActionSetContributionItem, INullSelectionListener, IPluginContribution, ISelectionListener

public class WWinPluginPulldown extends WWinPluginAction
A workbench window pulldown action.
  • Constructor Details

    • WWinPluginPulldown

      public WWinPluginPulldown(IConfigurationElement actionElement, IWorkbenchWindow window, String id, int style)
      Constructs a new instance of WWinPluginPulldown.
      Parameters:
      actionElement - The registry element from which the pulldown delegate should be created; must not be null.
      id - The identifier of this action delegate; may be null.
      window - The workbench window on which this pulldown should act; must not be null.
      style - The style.
  • Method Details

    • validateDelegate

      protected IActionDelegate validateDelegate(Object obj) throws WorkbenchException
      Description copied from class: PluginAction
      Validates the object is a delegate of the expected type. Subclasses can override to check for specific delegate types.

      Note: Calls to the object are not allowed during this method.

      Overrides:
      validateDelegate in class WWinPluginAction
      Parameters:
      obj - a possible action delegate implementation
      Returns:
      the IActionDelegate implementation for the object
      Throws:
      WorkbenchException - if not of the expected delegate type
    • getPulldownDelegate

      protected IWorkbenchWindowPulldownDelegate getPulldownDelegate()
      Returns the pulldown delegate. If it does not exist it is created. Can return null if delegate creation failed.