Package org.eclipse.ui
Class ResourceWorkingSetFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- org.eclipse.ui.ResourceWorkingSetFilter
-
public class ResourceWorkingSetFilter extends ViewerFilter
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 Constructor Description ResourceWorkingSetFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
filter(Viewer viewer, Object parent, Object[] elements)
Filters out elements that are neither a parent nor a child of a working set element.IWorkingSet
getWorkingSet()
Returns the active working set the filter is working with.boolean
select(Viewer viewer, Object parentElement, Object element)
Determines if an element should be filtered out.void
setWorkingSet(IWorkingSet workingSet)
Sets the active working set.-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, isFilterProperty
-
-
-
-
Method Detail
-
getWorkingSet
public IWorkingSet getWorkingSet()
Returns the active working set the filter is working with.- Returns:
- the active working set
-
setWorkingSet
public void setWorkingSet(IWorkingSet workingSet)
Sets the active working set.- Parameters:
workingSet
- the working set the filter should work with
-
select
public boolean select(Viewer viewer, Object parentElement, Object element)
Determines if an element should be filtered out.- Specified by:
select
in classViewerFilter
- Parameters:
viewer
- the viewerparentElement
- the parent elementelement
- the element- Returns:
true
if element is included in the filtered set, andfalse
if excluded- See Also:
ViewerFilter.select(Viewer, Object, Object)
-
filter
public Object[] filter(Viewer viewer, Object parent, Object[] elements)
Filters out elements that are neither a parent nor a child of a working set element.- Overrides:
filter
in classViewerFilter
- Parameters:
viewer
- the viewerparent
- the parent elementelements
- the elements to filter- Returns:
- the filtered elements
- See Also:
ViewerFilter.filter(Viewer, Object, Object[])
-
-