src/share/classes/javax/swing/undo/CompoundEdit.java

Print this page

        

*** 70,82 **** * <code>UndoableEdit</code>s in the order in * which they were added. */ public void redo() throws CannotRedoException { super.redo(); ! Enumeration cursor = edits.elements(); while (cursor.hasMoreElements()) { ! ((UndoableEdit)cursor.nextElement()).redo(); } } /** * Returns the last <code>UndoableEdit</code> in --- 70,82 ---- * <code>UndoableEdit</code>s in the order in * which they were added. */ public void redo() throws CannotRedoException { super.redo(); ! Enumeration<UndoableEdit> cursor = edits.elements(); while (cursor.hasMoreElements()) { ! cursor.nextElement().redo(); } } /** * Returns the last <code>UndoableEdit</code> in
*** 196,208 **** * Returns true if any of the <code>UndoableEdit</code>s * in <code>edits</code> do. * Returns false if they all return false. */ public boolean isSignificant() { ! Enumeration cursor = edits.elements(); while (cursor.hasMoreElements()) { ! if (((UndoableEdit)cursor.nextElement()).isSignificant()) { return true; } } return false; } --- 196,208 ---- * Returns true if any of the <code>UndoableEdit</code>s * in <code>edits</code> do. * Returns false if they all return false. */ public boolean isSignificant() { ! Enumeration<UndoableEdit> cursor = edits.elements(); while (cursor.hasMoreElements()) { ! if (cursor.nextElement().isSignificant()) { return true; } } return false; }