public interface IResourceScopeProvider
IResourceScope| Modifier and Type | Method and Description |
|---|---|
IResourceScope |
getScope(org.eclipse.core.resources.IResource resource)
Returns an
resource scope for given workspace resource. |
IResourceScope |
getScope(org.eclipse.emf.ecore.resource.Resource resource)
Returns an
resource scope for given model resource. |
boolean |
hasApplicableFileExtension(org.eclipse.core.resources.IFile file)
Tests if the given
file's extension corresponds to a file type which is subject to
resource scope provider. |
boolean |
isApplicableTo(org.eclipse.core.resources.IFile file)
Tests if this
resource scope provider is applicable to given file,
i.e., if this resource scope provider is able or likely to be able to provide a
resource scope for the given file. |
org.eclipse.emf.common.util.Diagnostic |
validate(org.eclipse.core.resources.IFile file)
Validates given
workspace file with regard to their resource scope and
returns a diagnostic as validation result. |
boolean isApplicableTo(org.eclipse.core.resources.IFile file)
resource scope provider is applicable to given file,
i.e., if this resource scope provider is able or likely to be able to provide a
resource scope for the given file. This typically involves testing if a
resource scope can be created for given file, exists, and
is applicable to files having the extension of the given
file.
This method is guaranteed to have a very little performance overhead.
file - The file to be investigated.true if this resource scope provider is applicable to given
file, false otherwise.hasApplicableFileExtension(IFile)boolean hasApplicableFileExtension(org.eclipse.core.resources.IFile file)
file's extension corresponds to a file type which is subject to
resource scope provider.
This method is guaranteed to have a very little performance overhead.
file - The file to be investigated.true if this resource scope provider is applicable to
files having the extension of the given file, false otherwise.isApplicableTo(IFile)IResourceScope getScope(org.eclipse.core.resources.IResource resource)
resource scope for given workspace resource.resource - The workspace resource to retrieve the resource scope for.resource scope for given workspace resource.IResourceScope getScope(org.eclipse.emf.ecore.resource.Resource resource)
resource scope for given model resource.resource - The model resource to retrieve the resource scope for.resource scope for given model resource.org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.core.resources.IFile file)
workspace file with regard to their resource scope and
returns a diagnostic as validation result.Diagnostic indicating resource scoping related problems, if any, or
Diagnostic.OK_INSTANCE otherwise.