public class ResourceDependencyProvider extends Object implements IResourceDependencyProvider
IResourceDependencyProvider
.Constructor and Description |
---|
ResourceDependencyProvider(IResolutionContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<URI> |
getDependenciesOf(org.eclipse.core.resources.IFile file)
Provides the dependencies of the given file.
|
Iterable<URI> |
getDependenciesOf(org.eclipse.core.resources.IFile file,
Set<URI> bounds)
Provides the dependencies of the given file.
|
boolean |
hasChild(URI parent,
URI candidate)
Indicates whether the given parent has the given URI as child according to the graph of dependencies.
|
protected com.google.common.base.Predicate<URI> |
isInContainer(org.eclipse.core.resources.IResource container)
This predicate can be used to check wether a given URI points to a workspace resource contained in the
given container.
|
public ResourceDependencyProvider(IResolutionContext context)
context
- The resolution context, must not be null.public Iterable<URI> getDependenciesOf(org.eclipse.core.resources.IFile file)
IResourceDependencyProvider
getDependenciesOf
in interface IResourceDependencyProvider
file
- The fileURI
s.public boolean hasChild(URI parent, URI candidate)
IResourceDependencyProvider
hasChild
in interface IResourceDependencyProvider
parent
- The parent URIcandidate
- The candidate childtrue
if and only if the candidate URI is known as a child of the parent URI in the
graph of dependencies.public Iterable<URI> getDependenciesOf(org.eclipse.core.resources.IFile file, Set<URI> bounds)
IResourceDependencyProvider
getDependenciesOf
in interface IResourceDependencyProvider
file
- The filebounds
- The bounds to exclude from the research, in cas the compared resources are part of the same
logical model.URI
s.protected com.google.common.base.Predicate<URI> isInContainer(org.eclipse.core.resources.IResource container)
container
- The container in which we need the resources to be contained.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.