diff options
Diffstat (limited to 'libjava/classpath/javax/swing/undo')
5 files changed, 39 insertions, 39 deletions
diff --git a/libjava/classpath/javax/swing/undo/AbstractUndoableEdit.java b/libjava/classpath/javax/swing/undo/AbstractUndoableEdit.java index 34c41ae..fc58660 100644 --- a/libjava/classpath/javax/swing/undo/AbstractUndoableEdit.java +++ b/libjava/classpath/javax/swing/undo/AbstractUndoableEdit.java @@ -130,8 +130,8 @@ public class AbstractUndoableEdit throw new CannotUndoException(); hasBeenDone = false; } - - + + /** * Determines whether it would be possible to undo this editing * action. @@ -146,8 +146,8 @@ public class AbstractUndoableEdit { return alive && hasBeenDone; } - - + + /** * Redoes this editing action. * @@ -165,8 +165,8 @@ public class AbstractUndoableEdit throw new CannotRedoException(); hasBeenDone = true; } - - + + /** * Determines whether it would be possible to redo this editing * action. @@ -208,8 +208,8 @@ public class AbstractUndoableEdit { return false; } - - + + /** * Incorporates another editing action into this one, thus forming a * combined action that replaces the argument action. @@ -223,8 +223,8 @@ public class AbstractUndoableEdit { return false; } - - + + /** * Determines whether this editing action is significant enough for * being seperately undoable by the user. A typical significant @@ -242,8 +242,8 @@ public class AbstractUndoableEdit { return true; } - - + + /** * Returns a human-readable, localized name that describes this * editing action and can be displayed to the user. diff --git a/libjava/classpath/javax/swing/undo/CompoundEdit.java b/libjava/classpath/javax/swing/undo/CompoundEdit.java index fbff2a2..64e5174 100644 --- a/libjava/classpath/javax/swing/undo/CompoundEdit.java +++ b/libjava/classpath/javax/swing/undo/CompoundEdit.java @@ -82,7 +82,7 @@ public class CompoundEdit * Indicates whether the creation of this CompoundEdit is still in * progress. Initially, the value of this flag is * <code>true</code>. The {@link #end()} method changes the flag to - * <code>false</code>. + * <code>false</code>. */ private boolean inProgress; @@ -95,7 +95,7 @@ public class CompoundEdit edits = new Vector<UndoableEdit>(); inProgress = true; } - + /** * Undoes all edits that are part of of this @@ -146,7 +146,7 @@ public class CompoundEdit edits.elementAt(i).redo(); } - + /** * Returns the the <code>UndoableEdit</code> that was last added to * this compound. @@ -191,7 +191,7 @@ public class CompoundEdit * UndoableEdit#replaceEdit(UndoableEdit) replace} the last added * edit. If this fails as well, <code>edit</code> gets added as a * new compound to {@link #edits}. - * + * * @param edit the editing action being added. * * @return <code>true</code> if <code>edit</code> could somehow be @@ -321,7 +321,7 @@ public class CompoundEdit return false; } - + /** * Returns a human-readable, localized name that describes this @@ -386,8 +386,8 @@ public class CompoundEdit else return last.getRedoPresentationName(); } - - + + /** * Calculates a string that may be useful for debugging. */ diff --git a/libjava/classpath/javax/swing/undo/StateEdit.java b/libjava/classpath/javax/swing/undo/StateEdit.java index a032d02..819d052 100644 --- a/libjava/classpath/javax/swing/undo/StateEdit.java +++ b/libjava/classpath/javax/swing/undo/StateEdit.java @@ -251,15 +251,15 @@ public class StateEdit Iterator<Object> i = preState.keySet().iterator(); while (i.hasNext()) { - Object key = i.next(); - if (postState.containsKey(key)) - { - if (preState.get(key).equals(postState.get(key))) - { - i.remove(); - postState.remove(key); - } - } + Object key = i.next(); + if (postState.containsKey(key)) + { + if (preState.get(key).equals(postState.get(key))) + { + i.remove(); + postState.remove(key); + } + } } } } diff --git a/libjava/classpath/javax/swing/undo/UndoManager.java b/libjava/classpath/javax/swing/undo/UndoManager.java index 1f47d51..9b10cc5 100644 --- a/libjava/classpath/javax/swing/undo/UndoManager.java +++ b/libjava/classpath/javax/swing/undo/UndoManager.java @@ -356,7 +356,7 @@ public class UndoManager } } - + /** * Undoes or redoes the last action. If the last action has already * been undone, it will be re-done, and vice versa. @@ -598,8 +598,8 @@ public class UndoManager else return edit.getRedoPresentationName(); } - - + + /** * Registers the edit action of an {@link UndoableEditEvent} * with this UndoManager. diff --git a/libjava/classpath/javax/swing/undo/UndoableEdit.java b/libjava/classpath/javax/swing/undo/UndoableEdit.java index 9938af7..1a08eca 100644 --- a/libjava/classpath/javax/swing/undo/UndoableEdit.java +++ b/libjava/classpath/javax/swing/undo/UndoableEdit.java @@ -39,10 +39,10 @@ package javax.swing.undo; /** * An editing operation that supports undo/redoability. - * + * * @author Andrew Selkirk */ -public interface UndoableEdit +public interface UndoableEdit { /** @@ -50,8 +50,8 @@ public interface UndoableEdit * combined action. * * @param edit the editing action to be incorporated. - * - * @return <code>true</code> if the edit was combined successfully, and + * + * @return <code>true</code> if the edit was combined successfully, and * <code>false</code> if it could not be combined. */ boolean addEdit(UndoableEdit edit); @@ -98,14 +98,14 @@ public interface UndoableEdit /** * Returns the redo presentation name. - * + * * @return The redo presentation name. */ String getRedoPresentationName(); /** * Returns the undo presentation name. - * + * * @return The undo presentation name. */ String getUndoPresentationName(); @@ -138,8 +138,8 @@ public interface UndoableEdit * combined action that replaces the argument action. * * @param edit the editing action to be replaced. - * - * @return <code>true</code> if the edit is successfully replaced, and + * + * @return <code>true</code> if the edit is successfully replaced, and * <code>false</code> otherwise. */ boolean replaceEdit(UndoableEdit edit); |