Package org.emftrace.emffit.history.items

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


  private List<AbstractHistoryItem> createOperationsForNewElement(
          EObject element, Date date) {
    List<AbstractHistoryItem> result = new ArrayList<AbstractHistoryItem>();

    Project projct = ModelUtil.getProject(element);
    result.add(new CreateHistoryItem(projct.getModelElementId(element), element.eClass().getName(), getUserName(), date));

    for (EAttribute attribute : element.eClass().getEAllAttributes()) {
      if (attribute.getName() != "identifier"
          && element.eGet(attribute) != null) {
        String newValue = element.eGet(attribute).toString();
View Full Code Here

TOP

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

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.