@Deprecated public interface AtomicLockDocument extends Document
doc.atomicLock(); try { ... modification1 modification2 ... } catch (BadLocationException e) { // something went wrong - undo till begining doc.atomicUndo(); } finally { doc.atomicUnlock(); }
The external clients can watch for atomic operations
by registering an listener through
AtomicLockDocument.addAtomicLockListener(AtomicLockListener)
StreamDescriptionProperty, TitleProperty
Modifier and Type | Method and Description |
---|---|
void |
addAtomicLockListener(AtomicLockListener l)
Deprecated.
|
void |
atomicLock()
Deprecated.
|
void |
atomicUndo()
Deprecated.
|
void |
atomicUnlock()
Deprecated.
|
void |
removeAtomicLockListener(AtomicLockListener l)
Deprecated.
|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
void atomicLock()
void atomicUnlock()
void atomicUndo()
void addAtomicLockListener(AtomicLockListener l)
void removeAtomicLockListener(AtomicLockListener l)