/** * Ends an "atomic" edit. * * @see #beginInternalAtomicEdit() */ public void endInternalAtomicEdit() { if (internalAtomicEditDepth>0 && --internalAtomicEditDepth==0) { addEdit(compoundEdit); compoundEdit.end(); compoundEdit = null; updateActions(); // Needed to show the new display name. } }
private RCompoundEdit startCompoundEdit(UndoableEdit edit) { lastOffset = textArea.getCaretPosition(); compoundEdit = new RCompoundEdit(); compoundEdit.addEdit(edit); addEdit(compoundEdit); return compoundEdit; }
/** * Ends an "atomic" edit. * * @see #beginInternalAtomicEdit() */ public void endInternalAtomicEdit() { if (internalAtomicEditDepth>0 && --internalAtomicEditDepth==0) { addEdit(compoundEdit); compoundEdit.end(); compoundEdit = null; updateActions(); // Needed to show the new display name. } }
/** * Ends an "atomic" edit. * * @see #beginInternalAtomicEdit() */ public void endInternalAtomicEdit() { if (internalAtomicEditDepth>0 && --internalAtomicEditDepth==0) { addEdit(compoundEdit); compoundEdit.end(); compoundEdit = null; updateActions(); // Needed to show the new display name. } }
/** * Ends an "atomic" edit. * * @see #beginInternalAtomicEdit() */ public void endInternalAtomicEdit() { if (internalAtomicEditDepth>0 && --internalAtomicEditDepth==0) { addEdit(compoundEdit); compoundEdit.end(); compoundEdit = null; updateActions(); // Needed to show the new display name. } }
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; }