Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.SECOND, SINCE_INTERVAL);
long timeInterval = calendar.getTimeInMillis();
long now = Calendar.getInstance().getTimeInMillis();
RefactoringHistory history = refactoringHistoryService.getWorkspaceHistory(timeInterval, now, MONITOR);
RefactoringDescriptorProxy[] descriptors = history.getDescriptors();
for (int i = 0; i < descriptors.length; i++) {
observer.onRefactoring();
}
refactoringHistoryService.disconnect();