Package org.emftrace.emffit.history.items

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


      }
    }
    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

Related Classes of org.emftrace.emffit.history.items.AddHistoryItem

Copyright © 2018 www.massapicom. 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.