use of org.eclipse.core.commands.operations.TriggeredOperations in project che by eclipse.
the class UndoManager2 method aboutToPerformChange.
public void aboutToPerformChange(Change change) {
IUndoableOperation operation = new UndoableOperation2ChangeAdapter(change);
operation.addContext(RefactoringCorePlugin.getUndoContext());
fActiveOperation = new TriggeredOperations(operation, fOperationHistory);
fActiveOperation.addContext(RefactoringCorePlugin.getUndoContext());
fOperationHistory.openOperation(fActiveOperation, IOperationHistory.EXECUTE);
fIsOpen = true;
}
Aggregations