@Override public IResourceDescription.Delta createDelta(final IResourceDescription oldDescription, final IResourceDescription newDescription) { return new DefaultResourceDescriptionDelta(oldDescription, newDescription); }
public boolean haveEObjectDescriptionsChanged() { if (hasChanges == null) { hasChanges = internalHasChanges(); } return hasChanges.booleanValue(); }
protected boolean internalHasChanges() { if (_new == null || old == null) return true; Iterable<IEObjectDescription> oldEObjects = old.getExportedObjects(); Iterable<IEObjectDescription> newEObjects = _new.getExportedObjects(); if (Iterables.size(oldEObjects) != Iterables.size(newEObjects)) return true; Iterator<IEObjectDescription> iterator1 = oldEObjects.iterator(); Iterator<IEObjectDescription> iterator2 = newEObjects.iterator(); while (iterator1.hasNext()) { if (!equals(iterator1.next(), iterator2.next())) return true; } return false; }
public Delta createDelta(IResourceDescription oldDescription, IResourceDescription newDescription) { return new DefaultResourceDescriptionDelta(oldDescription, newDescription); }
public Delta createDelta(IResourceDescription oldDescription, IResourceDescription newDescription) { return new DefaultResourceDescriptionDelta(oldDescription, newDescription); }
protected Collection<IResourceDescription.Delta> doClean(Set<URI> toBeRemoved, IProgressMonitor monitor) { SubMonitor subMonitor = SubMonitor.convert(monitor, Messages.AbstractBuilderState_2, toBeRemoved.size()); subMonitor.subTask(Messages.AbstractBuilderState_2); Set<IResourceDescription.Delta> result = newLinkedHashSet(); for (URI toDelete : toBeRemoved) { IResourceDescription resourceDescription = getResourceDescription(toDelete); if (resourceDescription != null) { result.add(new DefaultResourceDescriptionDelta(resourceDescription, null)); } subMonitor.worked(1); } return result; }
final IResourceDescription oldDescription = this.getResourceDescription(uri); if (oldDescription != null) { allDeltas.add(new DefaultResourceDescriptionDelta(oldDescription, null)); ResourceDescriptionImpl indexReadyDescription = newDesc != null ? BuilderStateUtil.create(newDesc) : null; if ((oldDescription != null || indexReadyDescription != null) && oldDescription != indexReadyDescription) { newDelta = new DefaultResourceDescriptionDelta(oldDescription, indexReadyDescription);
newState.register(new DefaultResourceDescriptionDelta(oldState.getResourceDescription(uri), copiedDescription)); buildData.queueURI(uri); newState.register(new DefaultResourceDescriptionDelta(oldDescription, null));