public class GenericResourceDescriptionManager extends 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(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 IllegalArgumentException
isAffected in interface IResourceDescription.ManagerIllegalArgumentException - if this manager is not responsible for the given candidate.public boolean isAffected(Collection<IResourceDescription.Delta> deltas, IResourceDescription candidate, IResourceDescriptions context) throws 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.IllegalArgumentException - if this manager is not responsible for the given candidate.Copyright © 2015. All Rights Reserved.