public class CustomFiltersActionGroup
extends ActionGroup
This class may be instantiated; it is not intended to be subclassed.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.Constructor and Description |
---|
CustomFiltersActionGroup(IViewPart part,
StructuredViewer viewer)
Creates a new
CustomFiltersActionGroup . |
CustomFiltersActionGroup(java.lang.String ownerId,
StructuredViewer viewer)
Creates a new
CustomFiltersActionGroup . |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
fillActionBars(IActionBars actionBars) |
void |
fillViewMenu(IMenuManager viewMenu)
Fills the given view menu with the entries managed by the
group.
|
java.lang.String[] |
internalGetEnabledFilterIds()
Returns a list of currently enabled filters.
|
java.lang.String[] |
removeFiltersFor(java.lang.Object parent,
java.lang.Object element,
IContentProvider contentProvider)
Removes filters for the given parent and element
|
void |
restoreState(IMemento memento)
Restores the state of the filter actions from a memento.
|
void |
saveState(IMemento memento)
Saves the state of the custom filters in a memento.
|
void |
setFilters(java.lang.String[] newFilters)
Sets the filters to the given array of new filters
|
public CustomFiltersActionGroup(IViewPart part, StructuredViewer viewer)
CustomFiltersActionGroup
.part
- the view part that owns this action groupviewer
- the viewer to be filteredpublic CustomFiltersActionGroup(java.lang.String ownerId, StructuredViewer viewer)
CustomFiltersActionGroup
.ownerId
- the id of this action group's ownerviewer
- the viewer to be filteredpublic void fillActionBars(IActionBars actionBars)
public java.lang.String[] internalGetEnabledFilterIds()
This method is for internal use only and should not be called by clients outside of JDT/UI.
public java.lang.String[] removeFiltersFor(java.lang.Object parent, java.lang.Object element, IContentProvider contentProvider)
parent
- the parent of the elementelement
- the elementcontentProvider
- the content provider of the viewer from which
the filters will be removedpublic void setFilters(java.lang.String[] newFilters)
newFilters
- the new filterspublic void fillViewMenu(IMenuManager viewMenu)
viewMenu
- the menu to fillpublic void dispose()
public void saveState(IMemento memento)
memento
- the memento into which the state is savedpublic void restoreState(IMemento memento)
Note: This method does not refresh the viewer.
memento
- the memento from which the state is restoredCopyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.