public interface ExtraLock
extraLock.lock(); try { doc.atomicLock(); // either BaseDocument or e.g. NbDocument.runAtomic() try { // indent or reformat ... } finally { doc.atomicUnlock(); } } finally { extraLock.unlock(); }
Modifier and Type | Method and Description |
---|---|
void |
lock() |
void |
unlock() |