public class ClusteringBuilderState extends AbstractBuilderState
IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCELOADER_CROSS_LINKING |
static java.lang.String |
RESOURCELOADER_GLOBAL_INDEX |
Constructor and Description |
---|
ClusteringBuilderState() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.resource.Resource |
addResource(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Adds a resource to the ResourceSet if the ResourceSet doesn't contain it yet.
|
protected void |
clearResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Clears the content of the resource set without sending notifications.
|
protected java.util.Collection<IResourceDescription.Delta> |
doUpdate(BuildData buildData,
ResourceDescriptionsData newData,
org.eclipse.core.runtime.IProgressMonitor monitor)
Actually do the build.
|
protected org.eclipse.core.resources.IProject |
getBuiltProject(BuildData buildData) |
protected IResourceDescription.Manager |
getResourceDescriptionManager(org.eclipse.emf.common.util.URI uri) |
protected void |
queueAffectedResources(java.util.Set<org.eclipse.emf.common.util.URI> allRemainingURIs,
IResourceDescriptions oldState,
CurrentDescriptions newState,
java.util.Collection<IResourceDescription.Delta> changedDeltas,
java.util.Collection<IResourceDescription.Delta> allDeltas,
BuildData buildData,
org.eclipse.core.runtime.IProgressMonitor monitor)
Put all resources that depend on some changes onto the queue of resources to be processed.
|
protected void |
writeNewResourceDescriptions(BuildData buildData,
IResourceDescriptions oldState,
CurrentDescriptions newState,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create new resource descriptions for a set of resources given by their URIs.
|
clean, doClean, ensureLoaded, ensureNotNull, getAllResourceDescriptions, getCopiedResourceDescriptionsData, getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, getResourceDescription, isEmpty, load, setPersister, setResourceDescriptionsData, update, updateMarkers
addListener, addListeners, notifyListeners, removeListener, removeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, notifyListeners, removeListener
public static final java.lang.String RESOURCELOADER_CROSS_LINKING
public static final java.lang.String RESOURCELOADER_GLOBAL_INDEX
protected java.util.Collection<IResourceDescription.Delta> doUpdate(BuildData buildData, ResourceDescriptionsData newData, org.eclipse.core.runtime.IProgressMonitor monitor)
doUpdate
in class AbstractBuilderState
buildData
- the data that should be considered for the updatenewData
- the new resource descriptions as they are to be persisted (the new index after the build).
Initially contains the old resource descriptions.monitor
- The progress monitorprotected void writeNewResourceDescriptions(BuildData buildData, IResourceDescriptions oldState, CurrentDescriptions newState, org.eclipse.core.runtime.IProgressMonitor monitor)
buildData
- The underlying data for the write operation.oldState
- The old indexnewState
- The new indexmonitor
- The progress monitor used for user feedbackprotected org.eclipse.core.resources.IProject getBuiltProject(BuildData buildData)
protected void clearResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected org.eclipse.emf.ecore.resource.Resource addResource(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resource
- the resourceresourceSet
- the resource setprotected void queueAffectedResources(java.util.Set<org.eclipse.emf.common.util.URI> allRemainingURIs, IResourceDescriptions oldState, CurrentDescriptions newState, java.util.Collection<IResourceDescription.Delta> changedDeltas, java.util.Collection<IResourceDescription.Delta> allDeltas, BuildData buildData, org.eclipse.core.runtime.IProgressMonitor monitor)
allRemainingURIs
- URIs that were not considered by prior operations.oldState
- State before the buildnewState
- The current statechangedDeltas
- the deltas that have changed IEObjectDescription
sallDeltas
- All deltasbuildData
- the underlying data for this build run.monitor
- The progress monitor used for user feedbackprotected IResourceDescription.Manager getResourceDescriptionManager(org.eclipse.emf.common.util.URI uri)