Package org.emftrace.emffit.history.items

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


   * @return  a List with the created a HistoryItem
   */
  private List<AbstractHistoryItem> createDeleteHistoryItem(
      CreateDeleteOperation op) {
    List<AbstractHistoryItem> result = new ArrayList<AbstractHistoryItem>();
    result.add(new DeleteHistoryItem(op.getModelElementId(), getUserName(), op
        .getClientDate()));
    result.addAll(createDeleteHistoryItemForChildren(op.getModelElement(),
        op.getClientDate()));
    return result;
  }
View Full Code Here


      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

TOP

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

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.