public int getFoldedLinesCountBefore(int offset) {
   if (!myDocumentChangeProcessed && myEditor.getDocument().isInEventsHandling()) {
     // There is a possible case that this method is called on document update before fold regions
     // are recalculated.
     // We return zero in such situations then.
     return 0;
   }
   return myFoldTree.getFoldedLinesCountBefore(offset);
 }
Ejemplo n.º 2
0
 public int getFoldedLinesCountBefore(int offset) {
   return myFoldTree.getFoldedLinesCountBefore(offset);
 }