Examples of canUndo()


Examples of com.ibm.richtext.textpanel.MTextPanel.canUndo()

       
        protected boolean isEnabled() {
           
            MTextPanel panel = getTextPanel();
            if (fKind == UNDO) {
                return panel.canUndo();
            }
            else {
                return panel.canRedo();
            }
        }
View Full Code Here

Examples of com.projity.undo.UndoController.canUndo()

    boolean canRedo = false;
//    String undoText = "";
//    String redoText = "";

    if (undoController != null){
      canUndo = undoController.canUndo();
      canRedo = undoController.canRedo();
//      undoText = undoController.getUndoManager().getUndoPresentationName();
//      redoText = undoController.getUndoManager().getRedoPresentationName();
    }
    menuManager.setActionEnabled(ACTION_UNDO,canUndo);
View Full Code Here

Examples of javax.swing.text.AbstractDocument.DefaultDocumentEvent.canUndo()

        assertFalse(undoInsertEvent.canUndo());
        assertTrue(undoInsertEvent.canRedo());
        assertSame(insertEvent, undoRemoveEvent);
        assertSame(EventType.INSERT, insertEvent.getType());
        assertSame(EventType.INSERT, undoRemoveEvent.getType());
        assertFalse(undoRemoveEvent.canUndo());
        assertTrue(undoRemoveEvent.canRedo());
        assertSame(removeEvent, undoInsertEvent);
        assertSame(EventType.REMOVE, removeEvent.getType());
        assertSame(EventType.REMOVE, undoInsertEvent.getType());
        //undoInsertEvent.undo();
View Full Code Here

Examples of javax.swing.undo.AbstractUndoableEdit.canUndo()

    AbstractUndoableEdit edit;

    edit = new AbstractUndoableEdit();

    // Check #1.
    harness.check(edit.canUndo());  

    // Check #2.
    edit.undo();
    harness.check(!edit.canUndo());
View Full Code Here

Examples of javax.swing.undo.AbstractUndoableEdit.canUndo()

    // Check #1.
    harness.check(edit.canUndo());  

    // Check #2.
    edit.undo();
    harness.check(!edit.canUndo());

    // Check #3.
    edit.redo();
    harness.check(edit.canUndo());
View Full Code Here

Examples of javax.swing.undo.AbstractUndoableEdit.canUndo()

    edit.undo();
    harness.check(!edit.canUndo());

    // Check #3.
    edit.redo();
    harness.check(edit.canUndo());

    // Check #4.
    edit.die();
    harness.check(!edit.canUndo());
  }
View Full Code Here

Examples of javax.swing.undo.AbstractUndoableEdit.canUndo()

    edit.redo();
    harness.check(edit.canUndo());

    // Check #4.
    edit.die();
    harness.check(!edit.canUndo());
  }
}
View Full Code Here

Examples of javax.swing.undo.CompoundEdit.canUndo()

    CompoundEdit edit;

    // Check #1.
    edit = new CompoundEdit();
    edit.addEdit(new AbstractUndoableEdit());
    harness.check(!edit.canUndo());

    // Check #2.
    edit.end();
    harness.check(edit.canUndo());
View Full Code Here

Examples of javax.swing.undo.CompoundEdit.canUndo()

    edit.addEdit(new AbstractUndoableEdit());
    harness.check(!edit.canUndo());

    // Check #2.
    edit.end();
    harness.check(edit.canUndo());

    // Check #3.
    edit.undo();
    harness.check(!edit.canUndo());
View Full Code Here

Examples of javax.swing.undo.CompoundEdit.canUndo()

    edit.end();
    harness.check(edit.canUndo());

    // Check #3.
    edit.undo();
    harness.check(!edit.canUndo());

    // Check #4.
    edit.redo();
    harness.check(edit.canUndo());
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.