|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.actions.ActionGroup
org.eclipse.ui.actions.WorkingSetFilterActionGroup
Adds working set filter actions (set / clear / edit)
Field Summary | |
---|---|
static String |
CHANGE_WORKING_SET
Indicates if working set was changed |
Constructor Summary | |
---|---|
WorkingSetFilterActionGroup(Shell shell,
IPropertyChangeListener workingSetUpdater)
Creates a new instance of the receiver. |
Method Summary | |
---|---|
void |
dispose()
This method is called by the user of an action group to signal that the group is no longer needed. |
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. |
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
---|
getContext, setContext, updateActionBars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CHANGE_WORKING_SET
Constructor Detail |
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.Method Detail |
public void dispose()
ActionGroup
The default implementation calls setContext(null)
.
Subclasses may extend this method.
dispose
in class ActionGroup
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
-
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.