private void printCollectedMessages(){
  if (buffer.isEmpty()) {
    return;
  }
  int firstMessageNum=0;
  if (buffer.size() > LIMIT) {
    firstMessageNum=buffer.size() - LIMIT;
    printLine("--------------------------------------------------------------------------------------");
    printLine("-------------------------------- " + firstMessageNum + " MESSAGES MISSED --------------------------------");
    consoleArea.add(getFullLogsWidget(getFullLogsLink()));
    printLine("--------------------------------------------------------------------------------------");
  }
  final ListIterator<String> iterator=buffer.listIterator(firstMessageNum);
  while (iterator.hasNext()) {
    printLine(iterator.next());
  }
  buffer.clear();
  scrollBottom();
}

private void printCollectedMessages ( ) { if ( buffer . isEmpty ( ) ) { return ; } int firstMessageNum = 0 ; if ( buffer . size ( ) > LIMIT ) { firstMessageNum = buffer . size ( ) - LIMIT ; printLine ( "--------------------------------------------------------------------------------------" ) ; printLine ( "-------------------------------- " + firstMessageNum + " MESSAGES MISSED --------------------------------" ) ; consoleArea . add ( getFullLogsWidget ( getFullLogsLink ( ) ) ) ; printLine ( "--------------------------------------------------------------------------------------" ) ; } final ListIterator < String > iterator = buffer . listIterator ( firstMessageNum ) ; while ( iterator . hasNext ( ) ) { printLine ( iterator . next ( ) ) ; } buffer . clear ( ) ; scrollBottom ( ) ; }
print all postponed messages in correct order .
