org.netbeans.modules.editor.indent/2 1.28

org.netbeans.modules.editor.indent.spi
Interface ExtraLock


public interface ExtraLock

Extra locking may be necessary for indentation/reformatting before the document gets write-locked and the actual indentation/reformatting gets started.
For example java infrastructure requires this.
The infrastructure guarantees this processing:

   extraLock.lock();
   try {
       doc.atomicLock(); // either BaseDocument or e.g. NbDocument.runAtomic()
       try {
           // indent or reformat ...
       } finally {
           doc.atomicUnlock();
       }
   } finally {
       extraLock.unlock();
   }
 


Method Summary
 void lock()
           
 void unlock()
           
 

Method Detail

lock

void lock()

unlock

void unlock()

org.netbeans.modules.editor.indent/2 1.28

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.