Package org.eclipse.ui.actions
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 Summary
Fields Modifier and Type Field Description static StringCHANGE_WORKING_SETIndicates if working set was changed
-
Constructor Summary
Constructors Constructor Description WorkingSetFilterActionGroup(Shell shell, IPropertyChangeListener workingSetUpdater)Creates a new instance of the receiver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillActionBars(IActionBars actionBars)Adds the applicable actions to a part's action bars, including setting any global action handlers.voidfillContextMenu(IMenuManager menuManager)Adds the applicable actions to a context menu, based on the state of theActionContext.IWorkingSetgetWorkingSet()Returns the working set which is currently selected.voidrestoreState(IMemento memento)Restores the state of the filter actions from a memento.voidsaveState(IMemento memento)Saves the state of the filter actions in a memento.voidsetWorkingSet(IWorkingSet newWorkingSet)Sets the current working set.-
Methods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, getContext, setContext, updateActionBars
-
-
-
-
Field Detail
-
CHANGE_WORKING_SET
public static final String CHANGE_WORKING_SET
Indicates if working set was changed- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkingSetFilterActionGroup
public WorkingSetFilterActionGroup(Shell shell, IPropertyChangeListener workingSetUpdater)
Creates a new instance of the receiver.- Parameters:
shell- shell to open dialogs and wizards onworkingSetUpdater- 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 returnstruesomewhat differently from traditional working sets. Please see the documentation forIWorkbenchPage.getAggregateWorkingSet()for details.
-
-
Method Detail
-
fillActionBars
public void fillActionBars(IActionBars actionBars)
Description copied from class:ActionGroupAdds 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:
fillActionBarsin classActionGroup- Parameters:
actionBars- the part's action bars
-
fillContextMenu
public void fillContextMenu(IMenuManager menuManager)
Description copied from class:ActionGroupAdds the applicable actions to a context menu, based on the state of theActionContext.The default implementation does nothing. Subclasses may override or extend this method.
- Overrides:
fillContextMenuin classActionGroup- 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
-
-