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, isFilterPropertypublic 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 ViewerFilterviewer - 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 ViewerFilterviewer - the viewerparent - the parent elementelements - the elements to filterViewerFilter.filter(Viewer, Object, Object[])Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.