Lines Matching refs:edit

35  * two ways to add edits to an <code>UndoManager</code>.  Add the edit
48 * index of the next edit in that list. The index of the next edit is
51 * of the last significant edit that was undone. When
53 * edit to the last significant edit are undone, in reverse order.
67 * index of the next edit will be 4. Invoking <code>undo</code>
69 * index of the next edit to 3 (edit <i>c</i>), as shown in the following
79 * The last significant edit is <b>A</b>, so that invoking
82 * next edit to 0, as shown in the following figure.
92 * all edits between the index of the next edit and the next
93 * significant edit (or the end of the list). Continuing with the previous
96 * the index of the next edit is set to 3 (as shown in <a
99 * Adding an edit to an <code>UndoManager</code> results in
100 * removing all edits from the index of the next edit to the end of
101 * the list. Continuing with the previous example, if a new edit,
102 * <i>e</i>, is added the edit <b>D</b> is removed from the list
104 * incorporated by the next edit
107 * the new edit is added after <i>c</i>, as shown in the following
163 * Empties the undo manager sending each edit a <code>die</code> message
181 * centered on the index of the next edit.
285 * Returns the the next significant edit to be undone if <code>undo</code>
289 * @return the next significant edit to be undone
294 UndoableEdit edit = edits.elementAt(--i);
295 if (edit.isSignificant()) {
296 return edit;
304 * Returns the the next significant edit to be redone if <code>redo</code>
308 * @return the next significant edit to be redone
315 UndoableEdit edit = edits.elementAt(i++);
316 if (edit.isSignificant()) {
317 return edit;
325 * Undoes all changes from the index of the next edit to
326 * <code>edit</code>, updating the index of the next edit appropriately.
331 protected void undoTo(UndoableEdit edit) throws CannotUndoException {
336 done = next == edit;
341 * Redoes all changes from the index of the next edit to
342 * <code>edit</code>, updating the index of the next edit appropriately.
347 protected void redoTo(UndoableEdit edit) throws CannotRedoException {
352 done = next == edit;
359 * the next edit is less than the length of the edits list) this
397 * index of the next edit and the last significant edit, updating
398 * the index of the next edit appropriately.
409 UndoableEdit edit = editToBeUndone();
410 if (edit == null) {
413 undoTo(edit);
431 UndoableEdit edit = editToBeUndone();
432 return edit != null && edit.canUndo();
442 * index of the next edit and the next significant edit, updating
443 * the index of the next edit appropriately.
454 UndoableEdit edit = editToBeRedone();
455 if (edit == null) {
458 redoTo(edit);
476 UndoableEdit edit = editToBeRedone();
477 return edit != null && edit.canRedo();
486 * edits from the index of the next edit to the end of the edits
487 * list. If <code>end</code> has been invoked the edit is not added
491 * @param anEdit the edit to be added
493 * edit
509 // Maybe super added this edit, maybe it didn't (perhaps
510 // an in progress compound edit took it instead. Or perhaps
538 * edit equals the size of the edits list,
553 * Returns a description of the undoable form of this edit.
556 * the value from the next significant edit that will be undone.
561 * @return a description of the undoable form of this edit
578 * Returns a description of the redoable form of this edit.
581 * the value from the next significant edit that will be redone.
586 * @return a description of the redoable form of this edit