public class QueuedBuildData
extends java.lang.Object
deltas
should use
queueChanges(List)
or #queueChange(Delta)
to announce a delta. If a client wants to announce a
special kind of delta, a IQueuedBuildDataContribution
could be necessary that can handle this contribution.IQueuedBuildDataContribution
Modifier and Type | Class and Description |
---|---|
static class |
QueuedBuildData.CompositeContribution
A composite structure for
contributions . |
static class |
QueuedBuildData.NullContribution |
Constructor and Description |
---|
QueuedBuildData(IStorage2UriMapper mapper) |
QueuedBuildData(IStorage2UriMapper mapper,
IQueuedBuildDataContribution contribution)
Public for testing purpose
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<org.eclipse.emf.common.util.URI> |
getAllRemainingURIs() |
java.util.Collection<IResourceDescription.Delta> |
getAndRemovePendingDeltas() |
java.util.Queue<org.eclipse.emf.common.util.URI> |
getQueue(java.lang.String projectName) |
boolean |
isEmpty(java.lang.String projectName) |
boolean |
needRebuild(org.eclipse.core.resources.IProject project)
Returns
true if rebuild is required; otherwise false . |
void |
queueChange(IResourceDescription.Delta delta) |
void |
queueChanges(java.util.List<IResourceDescription.Delta> deltas) |
void |
queueURI(org.eclipse.emf.common.util.URI uri) |
void |
queueURIs(java.util.Collection<org.eclipse.emf.common.util.URI> uris) |
void |
reset() |
@Inject public QueuedBuildData(IStorage2UriMapper mapper)
public QueuedBuildData(IStorage2UriMapper mapper, IQueuedBuildDataContribution contribution)
public void reset()
public boolean needRebuild(org.eclipse.core.resources.IProject project)
Returns true
if rebuild is required; otherwise false
.
project
- the project that may have to be rebuild.true
if rebuild is required; otherwise false
. Default is false
.IQueuedBuildDataContribution.needsRebuild(IProject, Collection)
public void queueChanges(java.util.List<IResourceDescription.Delta> deltas)
public void queueChange(IResourceDescription.Delta delta)
public void queueURIs(java.util.Collection<org.eclipse.emf.common.util.URI> uris)
public void queueURI(org.eclipse.emf.common.util.URI uri)
public java.util.Collection<IResourceDescription.Delta> getAndRemovePendingDeltas()
public boolean isEmpty(java.lang.String projectName)
public java.util.Queue<org.eclipse.emf.common.util.URI> getQueue(java.lang.String projectName)
public java.lang.Iterable<org.eclipse.emf.common.util.URI> getAllRemainingURIs()