Package org.eclipse.ui.ide
Class ResourceSaveableFilter
java.lang.Object
org.eclipse.ui.ide.ResourceSaveableFilter
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanselect(Saveable saveable, IWorkbenchPart[] containingParts) Indicate whether the given saveable matches this filter.
-
Constructor Details
-
ResourceSaveableFilter
Creates a new filter.- Parameters:
roots- the save roots
-
-
Method Details
-
select
Description copied from interface:ISaveableFilterIndicate whether the given saveable matches this filter.- Specified by:
selectin interfaceISaveableFilter- Parameters:
saveable- the saveable being testedcontainingParts- the parts that contain the saveable. This list may contain zero or more parts.- Returns:
- whether the given saveable matches this filter
-