Examples of addOperationApprover()


Examples of org.eclipse.core.commands.operations.IOperationHistory.addOperationApprover()

      /*
       * install an operation approver that prevents linear undo violations
       * in any context
       */
      approver = new AdvancedValidationUserApprover(getUndoContext());
      history.addOperationApprover(approver);
      /*
       * set a limit for the workbench undo context
       */
      history.setLimit(getUndoContext(), 25);
    }
View Full Code Here

Examples of org.eclipse.core.commands.operations.IOperationHistory.addOperationApprover()

      // The first approver will prompt when operations affecting outside elements are to be undone or redone.
      if (fNonLocalOperationApprover != null)
        history.removeOperationApprover(fNonLocalOperationApprover);
      fNonLocalOperationApprover= getUndoRedoOperationApprover(undoContext);
      history.addOperationApprover(fNonLocalOperationApprover);

      // The second approver will prompt from this editor when an undo is attempted on an operation
      // and it is not the most recent operation in the editor.
      if (fLinearUndoViolationApprover != null)
        history.removeOperationApprover(fLinearUndoViolationApprover);
View Full Code Here

Examples of org.eclipse.core.commands.operations.IOperationHistory.addOperationApprover()

      // The second approver will prompt from this editor when an undo is attempted on an operation
      // and it is not the most recent operation in the editor.
      if (fLinearUndoViolationApprover != null)
        history.removeOperationApprover(fLinearUndoViolationApprover);
      fLinearUndoViolationApprover= new LinearUndoViolationUserApprover(undoContext, this);
      history.addOperationApprover(fLinearUndoViolationApprover);

    } else {
      // Use text operation actions (pre 3.1 style)
     
      ResourceAction action;
View Full Code Here

Examples of org.eclipse.core.commands.operations.IOperationHistory.addOperationApprover()

      // The first approver will prompt when operations affecting outside elements are to be undone or redone.
      if (fNonLocalOperationApprover != null)
        history.removeOperationApprover(fNonLocalOperationApprover);
      fNonLocalOperationApprover= getUndoRedoOperationApprover(undoContext);
      history.addOperationApprover(fNonLocalOperationApprover);

      // The second approver will prompt from this editor when an undo is attempted on an operation
      // and it is not the most recent operation in the editor.
      if (fLinearUndoViolationApprover != null)
        history.removeOperationApprover(fLinearUndoViolationApprover);
View Full Code Here

Examples of org.eclipse.core.commands.operations.IOperationHistory.addOperationApprover()

      // The second approver will prompt from this editor when an undo is attempted on an operation
      // and it is not the most recent operation in the editor.
      if (fLinearUndoViolationApprover != null)
        history.removeOperationApprover(fLinearUndoViolationApprover);
      fLinearUndoViolationApprover= new LinearUndoViolationUserApprover(undoContext, this);
      history.addOperationApprover(fLinearUndoViolationApprover);

    } else {
      // Use text operation actions (pre 3.1 style)

      ResourceAction action;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.