public class ResourceSaveableFilter extends Object implements ISaveableFilter
Constructor and Description |
---|
ResourceSaveableFilter(IResource[] roots)
Creates a new filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
select(Saveable saveable,
IWorkbenchPart[] containingParts)
Indicate whether the given saveable matches this filter.
|
public ResourceSaveableFilter(IResource[] roots)
roots
- the save rootspublic boolean select(Saveable saveable, IWorkbenchPart[] containingParts)
ISaveableFilter
select
in interface ISaveableFilter
saveable
- the saveable being testedcontainingParts
- the parts that contain the saveable. This list may
contain zero or more parts.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.