Search in sources :

Example 1 with TriggeredOperations

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;
}
Also used : IUndoableOperation(org.eclipse.core.commands.operations.IUndoableOperation) TriggeredOperations(org.eclipse.core.commands.operations.TriggeredOperations)

Aggregations

IUndoableOperation (org.eclipse.core.commands.operations.IUndoableOperation)1 TriggeredOperations (org.eclipse.core.commands.operations.TriggeredOperations)1