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