Class AbstractFileInfoMatcher
- java.lang.Object
-
- org.eclipse.core.resources.filtermatchers.AbstractFileInfoMatcher
-
- Direct Known Subclasses:
CompoundFileInfoMatcher
public abstract class AbstractFileInfoMatcher extends Object
The abstract base class for all file info matchers. Instances of this class are provided using theorg.eclipse.core.resources.filterMatchersextension point.- Since:
- 3.6
-
-
Constructor Summary
Constructors Constructor Description AbstractFileInfoMatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidinitialize(IProject project, Object arguments)Sets initialization data for this matcher.abstract booleanmatches(IContainer parent, IFileInfo fileInfo)Tests the givenFileInfo
-
-
-
Method Detail
-
matches
public abstract boolean matches(IContainer parent, IFileInfo fileInfo) throws CoreException
Tests the givenFileInfo- Parameters:
parent- the parent containerfileInfo- theFileInfoobject to test- Returns:
trueif the givenFileInfomatches, andfalseotherwise.- Throws:
CoreException- the implementor should throw a CoreException if, in the case that the parent or fileInfo doesn't exist in the workspace or in the file system, the return value can't be determined.
-
initialize
public abstract void initialize(IProject project, Object arguments) throws CoreException
Sets initialization data for this matcher.- Parameters:
project- project this matcher works onarguments- matcher specific initialization argument- Throws:
CoreException- if initialization failed
-
-