public class ResourceWorkingSetFilter extends ViewerFilter
Constructor and Description |
---|
ResourceWorkingSetFilter() |
Modifier and Type | Method and 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.
|
filter, isFilterProperty
public IWorkingSet getWorkingSet()
public void setWorkingSet(IWorkingSet workingSet)
workingSet
- the working set the filter should work withpublic boolean select(Viewer viewer, Object parentElement, Object element)
select
in class ViewerFilter
viewer
- the viewerparentElement
- the parent elementelement
- the elementtrue
if element is included in the
filtered set, and false
if excludedViewerFilter.select(Viewer, Object, Object)
public Object[] filter(Viewer viewer, Object parent, Object[] elements)
filter
in class ViewerFilter
viewer
- the viewerparent
- the parent elementelements
- the elements to filterViewerFilter.filter(Viewer, Object, Object[])
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.