Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Class ResourceWorkingSetFilter

java.lang.Object
  extended by 

org.eclipse.jface.viewers.ViewerFilter
      extended by 
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
ResourceWorkingSetFilter ()
           
 
Method Summary
  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
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceWorkingSetFilter

public ResourceWorkingSetFilter()
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 class ViewerFilter
Parameters:
viewer - the viewer
parentElement - the parent element
element - the element
Returns:
true if element is included in the filtered set, and false 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 class ViewerFilter
Parameters:
viewer - the viewer
parent - the parent element
elements - the elements to filter
Returns:
the filtered elements
See Also:
ViewerFilter.filter(Viewer, Object, Object[])

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire