public class ResourceScopeValidationService
extends java.lang.Object
IFile
s with regard to their resource scope
and creating or cleaning corresponding problem markers. The validation itself is delegated to the
resource scope provider
which is associated with the type of the file
in
question.Modifier and Type | Field and Description |
---|---|
static ResourceScopeValidationService |
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanFiles(java.util.Collection<org.eclipse.core.resources.IFile> files,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes all
resource scoping problem marker s from the
file s in provided collection. |
void |
validateFiles(java.util.Collection<org.eclipse.core.resources.IFile> files,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates the provided collection of
file s with regard to their resource
scope . |
public static ResourceScopeValidationService INSTANCE
public void validateFiles(java.util.Collection<org.eclipse.core.resources.IFile> files, org.eclipse.core.runtime.IProgressMonitor monitor)
file
s with regard to their resource
scope
. The validation itself is delegated to the resource scope provider
which is
associated with the type of each file
. If it results in indicating any problem a
IResourceScopeMarker.RESOURCE_SCOPING_PROBLEM
marker is created for the file
in question.files
- The collection of file
s to be validated in terms of resource scoping.monitor
- A progress monitor
, or null
if progress reporting is not
desired.public void cleanFiles(java.util.Collection<org.eclipse.core.resources.IFile> files, org.eclipse.core.runtime.IProgressMonitor monitor)
resource scoping problem marker
s from the
file
s in provided collection.files
- The collection of file
s to be cleaned.monitor
- A progress monitor
, or null
if progress reporting is not
desired.