Package org.eclipse.core.commands.operations

Examples of org.eclipse.core.commands.operations.IUndoableOperation.canUndo()


    for (final Iterator it = _stepOperations.iterator(); it.hasNext();)
    {
      IUndoableOperation op = (IUndoableOperation) it.next();
     
      // fail fast
      if (!op.canUndo())
      {
        return false;
      }
    }
   
View Full Code Here


    for (final Iterator it = _stepOperations.iterator(); it.hasNext();)
    {
      IUndoableOperation op = (IUndoableOperation) it.next();
     
      // fail fast
      if (!op.canUndo())
      {
        return false;
      }
    }
   
View Full Code Here

      // 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

      // 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

      // 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.