/** * Begins an "atomic" edit. This method is called when RTextArea * KNOWS that some edits should be compound automatically, such as * when the user is typing in overwrite mode (the deletion of the * current char + insertion of the new one) or the playing back of a * macro. * * @see #endInternalAtomicEdit() */ public void beginInternalAtomicEdit() { if (++internalAtomicEditDepth==1) { if (compoundEdit!=null) { compoundEdit.end(); } compoundEdit = new RCompoundEdit(); } }
/** * Begins an "atomic" edit. This method is called when RTextArea * KNOWS that some edits should be compound automatically, such as * when the user is typing in overwrite mode (the deletion of the * current char + insertion of the new one) or the playing back of a * macro. * * @see #endInternalAtomicEdit() */ public void beginInternalAtomicEdit() { if (++internalAtomicEditDepth==1) { if (compoundEdit!=null) compoundEdit.end(); compoundEdit = new RCompoundEdit(); } }
/** * Begins an "atomic" edit. This method is called when RTextArea * KNOWS that some edits should be compound automatically, such as * when the user is typing in overwrite mode (the deletion of the * current char + insertion of the new one) or the playing back of a * macro. * * @see #endInternalAtomicEdit() */ public void beginInternalAtomicEdit() { if (++internalAtomicEditDepth==1) { if (compoundEdit!=null) compoundEdit.end(); compoundEdit = new RCompoundEdit(); } }
private RCompoundEdit startCompoundEdit(UndoableEdit edit) { lastOffset = textArea.getCaretPosition(); compoundEdit = new RCompoundEdit(); compoundEdit.addEdit(edit); addEdit(compoundEdit); return compoundEdit; }
private RCompoundEdit startCompoundEdit(UndoableEdit edit) { lastOffset = textArea.getCaretPosition(); compoundEdit = new RCompoundEdit(); compoundEdit.addEdit(edit); addEdit(compoundEdit); return compoundEdit; }
private RCompoundEdit startCompoundEdit(UndoableEdit edit) { lastOffset = textArea.getCaretPosition(); compoundEdit = new RCompoundEdit(); compoundEdit.addEdit(edit); addEdit(compoundEdit); return compoundEdit; }
/** * Begins an "atomic" edit. This method is called when RTextArea * KNOWS that some edits should be compound automatically, such as * when the user is typing in overwrite mode (the deletion of the * current char + insertion of the new one) or the playing back of a * macro. * * @see #endInternalAtomicEdit() */ public void beginInternalAtomicEdit() { if (++internalAtomicEditDepth==1) { if (compoundEdit!=null) { compoundEdit.end(); } compoundEdit = new RCompoundEdit(); } }
private RCompoundEdit startCompoundEdit(UndoableEdit edit) { lastOffset = textArea.getCaretPosition(); compoundEdit = new RCompoundEdit(); compoundEdit.addEdit(edit); addEdit(compoundEdit); return compoundEdit; }