public class GenericResourceDescriptionManager extends java.lang.Object implements IResourceDescription.Manager
IResourceDescription.Manager for non-Xtext resources.| 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.Managerpublic IResourceDescription.Delta createDelta(IResourceDescription oldDescription, IResourceDescription newDescription)
createDelta in interface IResourceDescription.Managerpublic boolean isAffected(IResourceDescription.Delta delta, IResourceDescription candidate) throws java.lang.IllegalArgumentException
isAffected in interface IResourceDescription.Managerjava.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.Managerfalse whenever
possible, e.g. check the deltas against the visible containers.isAffected in interface IResourceDescription.Managerdeltas - 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.