Package org.eclipse.ui.actions
Class WorkingSetFilterActionGroup
java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.ui.actions.WorkingSetFilterActionGroup
Adds working set filter actions (set / clear / edit)
- Since:
- 2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorkingSetFilterActionGroup(Shell shell, IPropertyChangeListener workingSetUpdater) Creates a new instance of the receiver. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillActionBars(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.Returns the working set which is currently selected.voidrestoreState(IMemento memento) Restores the state of the filter actions from a memento.voidSaves 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 Details
-
CHANGE_WORKING_SET
Indicates if working set was changed- See Also:
-
-
Constructor Details
-
WorkingSetFilterActionGroup
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 Details
-
fillActionBars
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
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
Returns the working set which is currently selected.- Returns:
- the working set which is currently selected.
-
setWorkingSet
Sets the current working set.- Parameters:
newWorkingSet- the new working set
-
saveState
Saves the state of the filter actions in a memento.- Parameters:
memento- the memento- Since:
- 3.3
-
restoreState
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
-