Examples of IUndoableOperation


Examples of org.eclipse.core.commands.operations.IUndoableOperation

      fPreservedRedoModificationStamp= event.getModificationStamp();

      // record the current valid state for the top operation in case it
      // remains the
      // top operation but changes state.
      IUndoableOperation op= fHistory.getUndoOperation(fUndoContext);
      boolean wasValid= false;
      if (op != null)
        wasValid= op.canUndo();
      // Process the change, providing the before and after timestamps
      processChange(event.getOffset(), event.getOffset()
          + event.getLength(), event.getText(), fReplacedText,
          fPreservedUndoModificationStamp,
          fPreservedRedoModificationStamp);
View Full Code Here

Examples of org.eclipse.core.commands.operations.IUndoableOperation

    public void documentChanged(DocumentEvent event) {
      fPreservedRedoModificationStamp= event.getModificationStamp();

      // record the current valid state for the top operation in case it remains the
      // top operation but changes state.
      IUndoableOperation op= fHistory.getUndoOperation(fUndoContext);
      boolean wasValid= false;
      if (op != null)
        wasValid= op.canUndo();
      // Process the change, providing the before and after timestamps
      processChange(event.getOffset(), event.getOffset() + event.getLength(), event.getText(), fReplacedText, fPreservedUndoModificationStamp, fPreservedRedoModificationStamp);

      // now update fCurrent with the latest buffers from the document change.
      fCurrent.pretendCommit();
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.