use of org.eclipse.ltk.internal.core.refactoring.history.RefactoringHistoryService in project che by eclipse.
the class RefactoringCorePlugin method start.
public void start(BundleContext context) throws Exception {
super.start(context);
RefactoringContributionManager.getInstance().connect();
final RefactoringHistoryService service = RefactoringHistoryService.getInstance();
service.connect();
fRefactoringHistoryListener = new RefactoringHistorySerializer();
service.addHistoryListener(fRefactoringHistoryListener);
}
use of org.eclipse.ltk.internal.core.refactoring.history.RefactoringHistoryService in project che by eclipse.
the class RefactoringCorePlugin method stop.
public void stop(BundleContext context) throws Exception {
if (fRefactoringUndoContext != null) {
IUndoContext workspaceContext = (IUndoContext) ResourcesPlugin.getWorkspace().getAdapter(IUndoContext.class);
if (workspaceContext instanceof ObjectUndoContext) {
((ObjectUndoContext) workspaceContext).removeMatch(fRefactoringUndoContext);
}
}
if (fgUndoManager != null)
fgUndoManager.shutdown();
final RefactoringHistoryService service = RefactoringHistoryService.getInstance();
service.disconnect();
if (fRefactoringHistoryListener != null)
service.removeHistoryListener(fRefactoringHistoryListener);
RefactoringContributionManager.getInstance().disconnect();
super.stop(context);
}
Aggregations