Exemplo n.º 1
0
 /** Creates the nested deltas for an opened element. */
 public void opened(IModelElement element) {
   ModelElementDelta delta = new ModelElementDelta(element);
   delta.changed(F_OPENED);
   insertDeltaTree(element, delta);
 }
Exemplo n.º 2
0
 /** Mark this delta as a fine-grained delta. */
 public void fineGrained() {
   changed(F_FINE_GRAINED);
 }
Exemplo n.º 3
0
 /** Creates the nested deltas for a closed element. */
 public void closed(IModelElement element) {
   ModelElementDelta delta = new ModelElementDelta(element);
   delta.changed(F_CLOSED);
   insertDeltaTree(element, delta);
 }
Exemplo n.º 4
0
 /**
  * Creates the nested deltas resulting from a change operation. Convenience method for creating
  * change deltas. The constructor should be used to create the root delta and then a change
  * operation should call this method.
  */
 public ModelElementDelta changed(IModelElement element, int changeFlag) {
   ModelElementDelta changedDelta = new ModelElementDelta(element);
   changedDelta.changed(changeFlag);
   insertDeltaTree(element, changedDelta);
   return changedDelta;
 }