Package org.eclipse.xtext.resource
Interface IResourceDescription.Manager.AllChangeAware
-
- All Superinterfaces:
IResourceDescription.Manager
- Enclosing interface:
- IResourceDescription.Manager
public static interface IResourceDescription.Manager.AllChangeAware extends IResourceDescription.Manager
Implement this interface if your language should be notified of allIResourceDescription.Delta
s, even if they don't contain any changedEObjectDescription
s- Since:
- 2.7
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceDescription.Manager
IResourceDescription.Manager.AllChangeAware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAffectedByAny(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.-
Methods inherited from interface org.eclipse.xtext.resource.IResourceDescription.Manager
createDelta, getResourceDescription, isAffected, isAffected
-
-
-
-
Method Detail
-
isAffectedByAny
boolean isAffectedByAny(java.util.Collection<IResourceDescription.Delta> deltas, IResourceDescription candidate, IResourceDescriptions context) throws java.lang.IllegalArgumentException
Batch operation to check whether a description is affected by any given delta in the given context. Implementations may perform any optimizations to returnfalse
whenever possible, e.g. check the deltas against the visible containers.- Parameters:
deltas
- List of deltas to check. May not benull
. In contrast toIResourceDescription.Manager.isAffected(Collection, IResourceDescription, IResourceDescriptions)
callers of this method are expected to pass in all deltas, even if they don't have changedIEObjectDescription
scandidate
- The description to check. May not benull
.context
- The current context of the batch operation. May not benull
.- Returns:
- whether the candidate is affected by any of the given changes.
- Throws:
java.lang.IllegalArgumentException
- if this manager is not responsible for the given candidate.
-
-