|
||||||||||
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.cdt.ui.actions.MemberFilterActionGroup
public class MemberFilterActionGroup
Field Summary | |
---|---|
static int |
ALL_FILTERS
|
static int |
FILTER_FIELDS
|
static int |
FILTER_LOCALTYPES
|
static int |
FILTER_NONPUBLIC
|
static int |
FILTER_STATIC
|
Constructor Summary | |
---|---|
MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer,
java.lang.String viewerId)
Creates a new MemberFilterActionGroup . |
|
MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer,
java.lang.String viewerId,
boolean inViewMenu)
Creates a new MemberFilterActionGroup . |
|
MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer,
java.lang.String viewerId,
boolean inViewMenu,
int availableFilters)
Creates a new MemberFilterActionGroup . |
Method Summary | |
---|---|
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager tbm)
Adds the filter actions to the given tool bar |
void |
contributeToViewMenu(org.eclipse.jface.action.IMenuManager menu)
Adds the filter actions to the given menu manager. |
void |
dispose()
|
void |
fillActionBars(org.eclipse.ui.IActionBars actionBars)
|
boolean |
hasMemberFilter(int filterProperty)
Returns true if the given filter is installed. |
void |
restoreState(org.eclipse.ui.IMemento memento)
Restores the state of the filter actions from a memento. |
void |
saveState(org.eclipse.ui.IMemento memento)
Saves the state of the filter actions in a memento. |
void |
setMemberFilter(int filterProperty,
boolean set)
Sets the member filters. |
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
---|
fillContextMenu, getContext, setContext, updateActionBars |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILTER_NONPUBLIC
public static final int FILTER_STATIC
public static final int FILTER_FIELDS
public static final int FILTER_LOCALTYPES
public static final int ALL_FILTERS
Constructor Detail |
---|
public MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer, java.lang.String viewerId)
MemberFilterActionGroup
.
viewer
- the viewer to be filteredviewerId
- a unique id of the viewer. Used as a key to to store
the last used filter settings in the preference storepublic MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer, java.lang.String viewerId, boolean inViewMenu)
MemberFilterActionGroup
.
viewer
- the viewer to be filteredviewerId
- a unique id of the viewer. Used as a key to to store
the last used filter settings in the preference storeinViewMenu
- if true
the actions are added to the view
menu. If false
they are added to the toobar.public MemberFilterActionGroup(org.eclipse.jface.viewers.StructuredViewer viewer, java.lang.String viewerId, boolean inViewMenu, int availableFilters)
MemberFilterActionGroup
.
viewer
- the viewer to be filteredviewerId
- a unique id of the viewer. Used as a key to to store
the last used filter settings in the preference storeinViewMenu
- if true
the actions are added to the view
menu. If false
they are added to the toobar.availableFilters
- Specifies which filter action should be contained. FILTER_NONPUBLIC
,
FILTER_STATIC
, FILTER_FIELDS
and FILTER_LOCALTYPES
or a combination of these constants are possible values. Use ALL_FILTERS
to select all available filters.Method Detail |
---|
public void setMemberFilter(int filterProperty, boolean set)
filterProperty
- the filter to be manipulated. Valid values are FILTER_FIELDS
,
FILTER_PUBLIC
, and FILTER_PRIVATE
as defined by this action
groupset
- if true
the given filter is installed. If false
the
given filter is removed
.public boolean hasMemberFilter(int filterProperty)
true
if the given filter is installed.
filterProperty
- the filter to be tested. Valid values are FILTER_FIELDS
,
FILTER_PUBLIC
, and FILTER_PRIVATE
as defined by this action
grouppublic void saveState(org.eclipse.ui.IMemento memento)
memento
- the memento to which the state is savedpublic void restoreState(org.eclipse.ui.IMemento memento)
Note: This method does not refresh the viewer.
memento
- the memento from which the state is restoredpublic void fillActionBars(org.eclipse.ui.IActionBars actionBars)
fillActionBars
in class org.eclipse.ui.actions.ActionGroup
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager tbm)
tbm
- the tool bar to which the actions are addedpublic void contributeToViewMenu(org.eclipse.jface.action.IMenuManager menu)
menu
- the menu manager to which the actions are addedpublic void dispose()
dispose
in class org.eclipse.ui.actions.ActionGroup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |