public class WorkingSetFilterActionGroup extends ActionGroup
Modifier and Type | Field and Description |
---|---|
static String |
CHANGE_WORKING_SET
Indicates if working set was changed
|
Constructor and Description |
---|
WorkingSetFilterActionGroup(Shell shell,
IPropertyChangeListener workingSetUpdater)
Creates a new instance of the receiver.
|
Modifier and Type | Method and Description |
---|---|
void |
fillActionBars(IActionBars actionBars)
Adds the applicable actions to a part's action bars,
including setting any global action handlers.
|
void |
fillContextMenu(IMenuManager menuManager)
Adds the applicable actions to a context menu,
based on the state of the
ActionContext . |
IWorkingSet |
getWorkingSet()
Returns the working set which is currently selected.
|
void |
restoreState(IMemento memento)
Restores the state of the filter actions from a memento.
|
void |
saveState(IMemento memento)
Saves the state of the filter actions in a memento.
|
void |
setWorkingSet(IWorkingSet newWorkingSet)
Sets the current working set.
|
dispose, getContext, setContext, updateActionBars
public static final String CHANGE_WORKING_SET
public WorkingSetFilterActionGroup(Shell shell, IPropertyChangeListener workingSetUpdater)
shell
- shell to open dialogs and wizards onworkingSetUpdater
- property change listener notified when a working set is setIWorkingSet.isAggregateWorkingSet()
method returns
true
somewhat differently from traditional working
sets. Please see the documentation for
IWorkbenchPage.getAggregateWorkingSet()
for details.public void fillActionBars(IActionBars actionBars)
ActionGroup
The default implementation does nothing. Subclasses may override or extend this method.
fillActionBars
in class ActionGroup
actionBars
- the part's action barspublic void fillContextMenu(IMenuManager menuManager)
ActionGroup
ActionContext
.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu
in class ActionGroup
menuManager
- the context menu managerpublic IWorkingSet getWorkingSet()
public void setWorkingSet(IWorkingSet newWorkingSet)
newWorkingSet
- the new working setpublic void saveState(IMemento memento)
memento
- the mementopublic void restoreState(IMemento memento)
Note: This method does not refresh the viewer.
memento
-
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.