Package org.emftrace.emffit.history.items

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


  private List<AbstractHistoryItem> createDeleteHistoryItemForChildren(
      EObject modelElement, Date date) {
    List<AbstractHistoryItem> result = new ArrayList<AbstractHistoryItem>();
    for (EObject child : ModelUtil.getAllContainedModelElements(modelElement,true) ) {
      result.addAll(createDeleteHistoryItemForChildren(child,  date));
      result.add(new RemoveHistoryItem(ModelUtil.getProject(child).getModelElementId(child), child.eContainingFeature().getName(), ModelUtil.getProject(modelElement).getModelElementId(modelElement), userName, date));
      result.add(new DeleteHistoryItem(ModelUtil.getProject(child).getModelElementId(child), getUserName(), date));
    }
    return result;
  }
View Full Code Here


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

TOP

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

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.