public class GenericResourceDescriptionManager extends java.lang.Object implements IResourceDescription.Manager
IResourceDescription.Manager
for non-Xtext resources.IResourceDescription.Manager.AllChangeAware
Constructor and Description |
---|
GenericResourceDescriptionManager() |
Modifier and Type | Method and Description |
---|---|
IResourceDescription.Delta |
createDelta(IResourceDescription oldDescription,
IResourceDescription newDescription) |
IResourceDescription |
getResourceDescription(org.eclipse.emf.ecore.resource.Resource resource) |
boolean |
isAffected(java.util.Collection<IResourceDescription.Delta> deltas,
IResourceDescription candidate,
IResourceDescriptions context)
Batch operation to check whether a description is affected by any given delta in
the given context.
|
boolean |
isAffected(IResourceDescription.Delta delta,
IResourceDescription candidate) |
public IResourceDescription getResourceDescription(org.eclipse.emf.ecore.resource.Resource resource)
getResourceDescription
in interface IResourceDescription.Manager
public IResourceDescription.Delta createDelta(IResourceDescription oldDescription, IResourceDescription newDescription)
createDelta
in interface IResourceDescription.Manager
public boolean isAffected(IResourceDescription.Delta delta, IResourceDescription candidate) throws java.lang.IllegalArgumentException
isAffected
in interface IResourceDescription.Manager
java.lang.IllegalArgumentException
- if this manager is not responsible for the given candidate.public boolean isAffected(java.util.Collection<IResourceDescription.Delta> deltas, IResourceDescription candidate, IResourceDescriptions context) throws java.lang.IllegalArgumentException
IResourceDescription.Manager
false
whenever
possible, e.g. check the deltas against the visible containers.isAffected
in interface IResourceDescription.Manager
deltas
- List of deltas to check. May not be null
.candidate
- The description to check. May not be null
.context
- The current context of the batch operation. May not be null
.java.lang.IllegalArgumentException
- if this manager is not responsible for the given candidate.