public class ProjectResourceScope extends AbstractResourceScope
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.sphinx.emf.scoping.ProjectResourceScopeProvider.IReferencedProjectsProvider |
referencedProjectsProvider |
protected org.eclipse.core.resources.IProject |
rootProject |
Constructor and Description |
---|
ProjectResourceScope(org.eclipse.core.resources.IResource resource) |
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(org.eclipse.core.resources.IFile file,
boolean includeReferencedScopes)
Determines if given
file belongs to this scope. |
boolean |
belongsTo(org.eclipse.emf.ecore.resource.Resource resource,
boolean includeReferencedScopes)
Determines if given
resource belongs to this scope. |
boolean |
belongsTo(org.eclipse.emf.common.util.URI uri,
boolean includeReferencedScopes)
Determines if given
uri references a resource that belongs to this scope. |
protected boolean |
belongsToRootOrDependingProjects(org.eclipse.core.resources.IFile file,
boolean includeReferencedScopes)
Deprecated.
Use
belongsToRootOrReferencedProjects(IFile, boolean) instead. |
protected boolean |
belongsToRootOrReferencedProjects(org.eclipse.core.resources.IFile file,
boolean includeReferencedScopes) |
boolean |
didBelongTo(org.eclipse.core.resources.IFile file,
boolean includeReferencedScopes)
Determines if given
file not belonging to this resource scope did belong to it before. |
boolean |
didBelongTo(org.eclipse.emf.ecore.resource.Resource resource,
boolean includeReferencedScopes)
Determines if given
resource not belonging to this resource scope did belong to it before. |
boolean |
didBelongTo(org.eclipse.emf.common.util.URI uri,
boolean includeReferencedScopes)
Determines if given
uri did reference a resource that does no longer belong to this
resource scope but did so before. |
java.util.Collection<org.eclipse.core.resources.IResource> |
getReferencedRoots()
Returns the roots of other
resource scope s which are referenced by this
resource scope . |
java.util.Collection<org.eclipse.core.resources.IResource> |
getReferencingRoots()
Returns the roots of other
resource scope s which reference this resource scope . |
org.eclipse.core.resources.IResource |
getRoot()
Returns the root
IResource of that resource scope . |
protected void |
setReferencedProjectsProvider(org.eclipse.sphinx.emf.scoping.ProjectResourceScopeProvider.IReferencedProjectsProvider referencedProjectsProvider) |
equals, exists, getFilesUnderRoot, getLoadedResources, getPersistedFiles, hashCode, isShared, isShared, isShared, toString
protected org.eclipse.core.resources.IProject rootProject
protected org.eclipse.sphinx.emf.scoping.ProjectResourceScopeProvider.IReferencedProjectsProvider referencedProjectsProvider
public ProjectResourceScope(org.eclipse.core.resources.IResource resource)
protected void setReferencedProjectsProvider(org.eclipse.sphinx.emf.scoping.ProjectResourceScopeProvider.IReferencedProjectsProvider referencedProjectsProvider)
public org.eclipse.core.resources.IResource getRoot()
IResourceScope
IResource
of that resource scope
.resource
of that scope.public java.util.Collection<org.eclipse.core.resources.IResource> getReferencedRoots()
IResourceScope
resource scope
s which are referenced by this
resource scope
.Collection
of resources containing all resource scope
's roots referenced
by this scope.public java.util.Collection<org.eclipse.core.resources.IResource> getReferencingRoots()
IResourceScope
resource scope
s which reference this resource scope
.Collection
of workspac resources
containing all resource
scope
's roots referencing this scope.public boolean belongsTo(org.eclipse.core.resources.IFile file, boolean includeReferencedScopes)
IResourceScope
file
belongs to this scope.file
- The file
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the file
is in this resource scope, or false
otherwise.public boolean belongsTo(org.eclipse.emf.ecore.resource.Resource resource, boolean includeReferencedScopes)
IResourceScope
resource
belongs to this scope.resource
- The resource
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the resource
is in this resource scope, or false
otherwise.public boolean belongsTo(org.eclipse.emf.common.util.URI uri, boolean includeReferencedScopes)
IResourceScope
uri
references a resource
that belongs to this scope.uri
- The uri
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the uri
is in this resource scope, or false
otherwise.public boolean didBelongTo(org.eclipse.core.resources.IFile file, boolean includeReferencedScopes)
IResourceScope
file
not belonging to this resource scope did belong to it before.file
- The file
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the file
was in this resource scope, or false
otherwise.public boolean didBelongTo(org.eclipse.emf.ecore.resource.Resource resource, boolean includeReferencedScopes)
IResourceScope
resource
not belonging to this resource scope did belong to it before.resource
- The resource
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the resource
was in this resource scope, or false
otherwise.public boolean didBelongTo(org.eclipse.emf.common.util.URI uri, boolean includeReferencedScopes)
IResourceScope
uri
did reference a resource
that does no longer belong to this
resource scope but did so before.uri
- The uri
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.true
if the uri
was in this resource scope, or false
otherwise.protected boolean belongsToRootOrReferencedProjects(org.eclipse.core.resources.IFile file, boolean includeReferencedScopes)
@Deprecated protected boolean belongsToRootOrDependingProjects(org.eclipse.core.resources.IFile file, boolean includeReferencedScopes)
belongsToRootOrReferencedProjects(IFile, boolean)
instead.