Package org.emftrace.emffit.history.providers

Examples of org.emftrace.emffit.history.providers.HistoryProvider


  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    FTICPackage fTICPackage = (FTICPackage) UiUtil.getSelectedEObject()
    Project project = ModelUtil.getProject(fTICPackage);
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(project);
    HistoryProvider provider = new HistoryProvider(projectSpace);
    provider.addHistoryListener(new HistoryListener() {
     
     
      @Override
      public void operationExecuted(final List<AbstractHistoryItem> newItems) {
        if (newItems!= null)
          for (AbstractHistoryItem  item : newItems)
            System.out.println(item)
      }

    });
    System.out.println("current local changes:");
    for (AbstractHistoryItem  item : provider.getHistoryList())
      System.out.println(item)
    System.out.println("new local changes:");
    return null;
  }
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.history.providers.HistoryProvider

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.