Examples of AddHistoryItem


Examples of org.emftrace.emffit.history.items.AddHistoryItem

   */
  private List<AbstractHistoryItem> createAddOperation(
      MultiReferenceOperation op) {
    List<AbstractHistoryItem> result = new ArrayList<AbstractHistoryItem>();
    for (ModelElementId ref : op.getReferencedModelElements()) {
      result.add(new AddHistoryItem(op.getModelElementId(), op
          .getFeatureName(), ref, op.getIndex(), getUserName(), op.getClientDate()));
    }
    return result;
  }
View Full Code Here

Examples of org.emftrace.emffit.history.items.AddHistoryItem

      }
    }
    int index = 0;
    for (EObject child : ModelUtil.getAllContainedModelElements(element,true)) {
      result.addAll(createOperationsForNewElement(child, date));
      result.add(new AddHistoryItem(ModelUtil.getProject(child).getModelElementId(child), child
          .eContainingFeature().getName(), ModelUtil.getProject(element).getModelElementId(element), index, getUserName(), date));
      index++;
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.