Changeset 99

Show
Ignore:
Timestamp:
04/17/06 15:36:48 (3 years ago)
Author:
jlee
Message:

Always scroll log output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org/thestaticvoid/iriverter/LogViewer.java

    r97 r99  
    5454        public void logMessage(final String message) { 
    5555                Display.getDefault().syncExec(new Runnable() { 
    56                         public void run() {                             
     56                        public void run() { 
    5757                                text.append(message + "\n"); 
    58                                 text.setCaretOffset(text.getCharCount()); 
    5958                                 
    6059                                if (message.charAt(0) == Logger.PREFIX[Logger.INFO].charAt(0)) 
     
    6968                                for (int i = 0; i < lineColors.size(); i++) 
    7069                                        text.setLineBackground(i, 1, (Color) lineColors.get(i)); 
     70                                 
     71                                text.setSelection(text.getCharCount()); 
    7172                        } 
    7273                });