Eclipse Platform
Kepler (4.3)

org.eclipse.ui.ide
Class ResourceSaveableFilter

java.lang.Object
  extended by org.eclipse.ui.ide.ResourceSaveableFilter
All Implemented Interfaces:
ISaveableFilter

public class ResourceSaveableFilter
extends java.lang.Object
implements ISaveableFilter

A saveable filter where the given savable must either match one of the given roots or be a direct or indirect child of one of the roots.

Since:
3.9

Constructor Summary
ResourceSaveableFilter(IResource[] roots)
          Creates a new filter.
 
Method Summary
 boolean select(Saveable saveable, IWorkbenchPart[] containingParts)
          Indicate whether the given saveable matches this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSaveableFilter

public ResourceSaveableFilter(IResource[] roots)
Creates a new filter.

Parameters:
roots - the save roots
Method Detail

select

public boolean select(Saveable saveable,
                      IWorkbenchPart[] containingParts)
Description copied from interface: ISaveableFilter
Indicate whether the given saveable matches this filter.

Specified by:
select in interface ISaveableFilter
Parameters:
saveable - the saveable being tested
containingParts - the parts that contain the saveable. This list may contain zero or more parts.
Returns:
whether the given saveable matches this filter

Eclipse Platform
Kepler (4.3)

Guidelines for using Eclipse APIs.

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