public void visit(CDOSetFeatureDelta delta) { setListItem(accessor, id, delta.getIndex(), delta.getValue(), created); }
public void visit(CDOSetFeatureDelta delta) { int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, oldVersion, newVersion, index); // create the item addEntry(accessor, id, newVersion, index, delta.getValue(), timestamp); }
@Override public void visit(CDOSetFeatureDelta delta) { revision.set(delta.getFeature(), delta.getIndex(), delta.getValue()); }
public void visit(CDOSetFeatureDelta delta) { int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, branchID, oldVersion, newVersion, index, timestamp); // create the item addEntry(accessor, id, branchID, newVersion, index, delta.getValue(), timestamp); }
public void visit(CDOSetFeatureDelta delta) { finishPendingRemove(); int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, branchID, oldVersion, newVersion, index); // create the item addEntry(accessor, id, branchID, newVersion, index, delta.getValue()); }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object value = null; if (feature.isMany()) { value = workList.set(delta.getIndex(), delta.getValue()); } else { value = ((InternalCDORevision)oldRevision).getValue(feature); } ((CDOSetFeatureDeltaImpl)delta).setOldValue(value); } };
public void visit(CDOSetFeatureDelta delta) { finishPendingRemove(); int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, oldVersion, newVersion, index); // create the item addEntry(accessor, id, newVersion, index, delta.getValue()); }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object value = null; if (feature.isMany()) { value = workList.set(delta.getIndex(), delta.getValue()); } else { value = ((InternalCDORevision)oldRevision).getValue(feature); } ((CDOSetFeatureDeltaImpl)delta).setOldValue(value); // Adjust delta } };
public void visit(CDOSetFeatureDelta delta) { if (TRACER.isEnabled()) { TRACER.format(" - set at {0} value {1}", delta.getIndex(), delta.getValue()); //$NON-NLS-1$ } ManipulationElement e = findElement(delta.getIndex()); // set the new value e.value = delta.getValue(); // if the item is freshly inserted we do not set the SET-mark. // setting the value of a new item results in inserting with the // new value at once. if (!e.is(ManipulationConstants.INSERT)) { // else mark the existing item to be set to a new value e.addType(ManipulationConstants.SET_VALUE); } }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object oldValue = getOldValue(feature); if (oldValue instanceof CDOID) { CDOID oldID = (CDOID)oldValue; CDOObject object = findObjectByID(oldID); if (object != null) { oldValue = object; } } Object newValue = delta.getValue(); add(createNotification(Notification.SET, feature, oldValue, newValue, delta.getIndex())); }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object oldValue = getOldValue(feature); if (oldValue instanceof CDOID) { CDOID oldID = (CDOID)oldValue; CDOObject object = findObjectByID(oldID); if (object != null) { oldValue = object; } } add(new CDODeltaNotificationImpl(object, Notification.SET, getEFeatureID(feature), oldValue, delta.getValue(), delta.getIndex())); }
rememberAddition(setChange.getValue(), newElement, additions); Element oldElement = list.set(setChange.getIndex(), newElement); oldElement.set(side, setChange); allElements.put(setChange, oldElement);