public class JdtQueuedBuildData extends java.lang.Object implements IQueuedBuildDataContribution
Constructor and Description |
---|
JdtQueuedBuildData() |
Modifier and Type | Method and Description |
---|---|
void |
createCheckpoint() |
void |
discardCheckpoint() |
protected boolean |
doNeedRebuild(JavaBuilderState it,
Procedures.Procedure1<? super UnconfirmedStructuralChangesDelta> processor) |
java.util.Collection<UnconfirmedStructuralChangesDelta> |
getUnconfirmedDeltas()
Public for testing purpose
|
protected boolean |
namesIntersect(IResourceDescription resourceDescription,
java.util.Set<QualifiedName> names) |
boolean |
needsRebuild(org.eclipse.core.resources.IProject it,
java.util.Collection<IResourceDescription.Delta> deltas)
Decide based on the given project, the known internal state and the existing list of deltas whether a rebuilt is
required.
|
boolean |
queueChange(IResourceDescription.Delta delta)
A to-be-queued delta is passed to the known contributors to establish a communication channel between clients of
the
QueuedBuildData and a potentially available special treatment of a certain kind of delta. |
void |
reset()
Resets internal state of the contribution.
|
void |
reset(org.eclipse.core.resources.IProject project)
Resets the internal state of the contribution with regard to the given project.
|
void |
rollback() |
public void reset()
IQueuedBuildDataContribution
reset
in interface IQueuedBuildDataContribution
public void reset(org.eclipse.core.resources.IProject project)
IQueuedBuildDataContribution
reset
in interface IQueuedBuildDataContribution
public java.util.Collection<UnconfirmedStructuralChangesDelta> getUnconfirmedDeltas()
public boolean queueChange(IResourceDescription.Delta delta)
IQueuedBuildDataContribution
QueuedBuildData
and a potentially available special treatment of a certain kind of delta.queueChange
in interface IQueuedBuildDataContribution
false
if the delta was not processed, true
if this contribution handled the
given delta.UnconfirmedStructuralChangesDelta
public boolean needsRebuild(org.eclipse.core.resources.IProject it, java.util.Collection<IResourceDescription.Delta> deltas)
IQueuedBuildDataContribution
needsRebuild
in interface IQueuedBuildDataContribution
true
if the project has to be rebuilt according to the known state.protected boolean doNeedRebuild(JavaBuilderState it, Procedures.Procedure1<? super UnconfirmedStructuralChangesDelta> processor)
protected boolean namesIntersect(IResourceDescription resourceDescription, java.util.Set<QualifiedName> names)
public void createCheckpoint()
createCheckpoint
in interface IQueuedBuildDataContribution
public void discardCheckpoint()
discardCheckpoint
in interface IQueuedBuildDataContribution
public void rollback()
rollback
in interface IQueuedBuildDataContribution