Package org.eclipse.ui
Class ResourceWorkingSetFilter
java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
org.eclipse.ui.ResourceWorkingSetFilter
A resource working set filter filters resources from a view that
are neither a parent nor children of a working set element.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Filters out elements that are neither a parent nor a child of a working set element.Returns the active working set the filter is working with.booleanDetermines if an element should be filtered out.voidsetWorkingSet(IWorkingSet workingSet) Sets the active working set.Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, isFilterProperty
-
Constructor Details
-
ResourceWorkingSetFilter
public ResourceWorkingSetFilter()
-
-
Method Details
-
getWorkingSet
Returns the active working set the filter is working with.- Returns:
- the active working set
-
setWorkingSet
Sets the active working set.- Parameters:
workingSet- the working set the filter should work with
-
select
Determines if an element should be filtered out.- Specified by:
selectin classViewerFilter- Parameters:
viewer- the viewerparentElement- the parent elementelement- the element- Returns:
trueif element is included in the filtered set, andfalseif excluded- See Also:
-
filter
Filters out elements that are neither a parent nor a child of a working set element.- Overrides:
filterin classViewerFilter- Parameters:
viewer- the viewerparent- the parent elementelements- the elements to filter- Returns:
- the filtered elements
- See Also:
-