Class WorkingSetFilterActionGroup

java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.ui.actions.WorkingSetFilterActionGroup

public class WorkingSetFilterActionGroup extends ActionGroup
Adds working set filter actions (set / clear / edit)
Since:
2.1
  • Field Details

    • CHANGE_WORKING_SET

      public static final String CHANGE_WORKING_SET
      Indicates if working set was changed
      See Also:
  • Constructor Details

    • WorkingSetFilterActionGroup

      public WorkingSetFilterActionGroup(Shell shell, IPropertyChangeListener workingSetUpdater)
      Creates a new instance of the receiver.
      Parameters:
      shell - shell to open dialogs and wizards on
      workingSetUpdater - property change listener notified when a working set is set
      Since:
      3.2 Please note that it is expected that clients treat any selected working sets whose IWorkingSet.isAggregateWorkingSet() method returns true somewhat differently from traditional working sets. Please see the documentation for IWorkbenchPage.getAggregateWorkingSet() for details.
  • Method Details

    • fillActionBars

      public void fillActionBars(IActionBars actionBars)
      Description copied from class: ActionGroup
      Adds the applicable actions to a part's action bars, including setting any global action handlers.

      The default implementation does nothing. Subclasses may override or extend this method.

      Overrides:
      fillActionBars in class ActionGroup
      Parameters:
      actionBars - the part's action bars
    • fillContextMenu

      public void fillContextMenu(IMenuManager menuManager)
      Description copied from class: ActionGroup
      Adds the applicable actions to a context menu, based on the state of the ActionContext.

      The default implementation does nothing. Subclasses may override or extend this method.

      Overrides:
      fillContextMenu in class ActionGroup
      Parameters:
      menuManager - the context menu manager
    • getWorkingSet

      public IWorkingSet getWorkingSet()
      Returns the working set which is currently selected.
      Returns:
      the working set which is currently selected.
    • setWorkingSet

      public void setWorkingSet(IWorkingSet newWorkingSet)
      Sets the current working set.
      Parameters:
      newWorkingSet - the new working set
    • saveState

      public void saveState(IMemento memento)
      Saves the state of the filter actions in a memento.
      Parameters:
      memento - the memento
      Since:
      3.3
    • restoreState

      public void restoreState(IMemento memento)
      Restores the state of the filter actions from a memento.

      Note: This method does not refresh the viewer.

      Parameters:
      memento - the memento with the filter actions content
      Since:
      3.3