/** * Initializes the command stack. * * @since 3.1 */ private void initializeCommandStack() { if (fHistory != null && fUndoContext != null) fHistory.dispose(fUndoContext, true, true, false); }
/** * Disposes the command stack. * * @since 3.1 */ private void disposeCommandStack() { fHistory.dispose(fUndoContext, true, true, true); }
/** * Disposes the command stack. * * @since 3.1 */ private void disposeCommandStack() { fHistory.dispose(fUndoContext, true, true, true); }
/** * Initializes the command stack. * * @since 3.1 */ private void initializeCommandStack() { if (fHistory != null && fUndoContext != null) fHistory.dispose(fUndoContext, true, true, false); }
/** * Disposes the undo history. */ private void disposeUndoHistory() { fHistory.dispose(fUndoContext, true, true, true); }
/** * Initializes the undo history. */ private void initializeUndoHistory() { if (fHistory != null && fUndoContext != null) fHistory.dispose(fUndoContext, true, true, false); }
/** * Disposes the undo history. */ private void disposeUndoHistory() { fHistory.dispose(fUndoContext, true, true, true); }
/** * Initializes the undo history. */ private void initializeUndoHistory() { if (fHistory != null && fUndoContext != null) fHistory.dispose(fUndoContext, true, true, false); }
/** * Flush the undo and redo history for the workspace undo context. */ private void flushWorkspaceHistory(IUndoableOperation op) { if (Policy.DEBUG_UNDOMONITOR) { System.out.println(DEBUG_PREFIX + "Flushing undo history due to " + op); //$NON-NLS-1$ } getOperationHistory().dispose( WorkspaceUndoUtil.getWorkspaceUndoContext(), true, true, false); }
@Override void flush() { getHistory().dispose(getUndoContext(), false, true, false); }
@Override void flush() { getHistory().dispose(getUndoContext(), true, false, false); }
public void flush() { if (fActiveOperation != null) { if (fIsOpen) { fOperationHistroy.closeOperation(false, false, IOperationHistory.EXECUTE); } /* the triggering operation is invalid, but we must ensure that any * other operations executed while it was open remain in the undo * history. We accomplish this by adding the invalid operation, * since disposing the context later will cause it to be broken up into * its atomic parts. */ fOperationHistroy.add(fActiveOperation); } fActiveOperation= null; fIsOpen= false; fOperationHistroy.dispose(RefactoringCorePlugin.getUndoContext(), true, true, false); }
@Override public void flush() { if (fActiveOperation != null) { if (fIsOpen) { fOperationHistory.closeOperation(false, false, IOperationHistory.EXECUTE); } /* the triggering operation is invalid, but we must ensure that any * other operations executed while it was open remain in the undo * history. We accomplish this by adding the invalid operation, * since disposing the context later will cause it to be broken up into * its atomic parts. */ fOperationHistory.add(fActiveOperation); } fActiveOperation= null; fIsOpen= false; fOperationHistory.dispose(RefactoringCorePlugin.getUndoContext(), true, true, false); }
@Override public void flush() { if (fActiveOperation != null) { if (fIsOpen) { fOperationHistory.closeOperation(false, false, IOperationHistory.EXECUTE); } /* the triggering operation is invalid, but we must ensure that any * other operations executed while it was open remain in the undo * history. We accomplish this by adding the invalid operation, * since disposing the context later will cause it to be broken up into * its atomic parts. */ fOperationHistory.add(fActiveOperation); } fActiveOperation= null; fIsOpen= false; fOperationHistory.dispose(RefactoringCorePlugin.getUndoContext(), true, true, false); }
/** * Disposes of anything created by the operation support. */ public void dispose() { /* * uninstall the operation approver that we added to the operation history */ getOperationHistory().removeOperationApprover(approver); /* * dispose of all operations using our context */ getOperationHistory().dispose(getUndoContext(), true, true, true); }