private boolean isBlockCommented(int startLine,int endLine,String[] prefixes,IDocument document){
  try {
    for (int i=startLine; i <= endLine; i++) {
      IRegion line=document.getLineInformation(i);
      String text=document.get(line.getOffset(),line.getLength());
      int[] found=TextUtilities.indexOf(prefixes,text,0);
      if (found[0] == -1)       return false;
      String s=document.get(line.getOffset(),found[0]);
      s=s.trim();
      if (s.length() != 0)       return false;
    }
    return true;
  }
 catch (  BadLocationException x) {
  }
  return false;
}

private boolean isBlockCommented ( int startLine , int endLine , String [ ] prefixes , IDocument document ) { try { for ( int i = startLine ; i <= endLine ; i ++ ) { IRegion line = document . getLineInformation ( i ) ; String text = document . get ( line . getOffset ( ) , line . getLength ( ) ) ; int [ ] found = TextUtilities . indexOf ( prefixes , text , 0 ) ; if ( found [ 0 ] == - 1 ) return false ; String s = document . get ( line . getOffset ( ) , found [ 0 ] ) ; s = s . trim ( ) ; if ( s . length ( ) != 0 ) return false ; } return true ; } catch ( BadLocationException x ) { } return false ; }
determines whether each line is prefixed by one of the prefixes .
