Ignore:
Timestamp:
09/19/12 11:55:21 (12 years ago)
Author:
sherbold
Message:
  • minor SWT GUI change
  • JFCLogParser now reports missing KEYDOWN events as severe warnings using the trace mechanism instead of errors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/SWTConsole.java

    r674 r828  
    3838    @Override 
    3939    public void errorMsg(String errMessage) { 
    40         appendColored(errMessage, SWT.COLOR_RED); 
     40        appendColored("[ERROR] " + errMessage, SWT.COLOR_RED); 
    4141    } 
    4242 
     
    4444    public void traceMsg(String traceMessage, Level level) { 
    4545        if( level.intValue()>=traceLevel.intValue()) { 
    46             appendColored("[" + level.toString() + "] " + traceMessage, SWT.COLOR_BLUE); 
     46            int color = SWT.COLOR_BLUE; 
     47            if( level==Level.SEVERE ) { 
     48                color = SWT.COLOR_RED; 
     49            } 
     50            appendColored("[" + level.toString() + "] " + traceMessage, color); 
    4751        } 
    4852    } 
Note: See TracChangeset for help on using the changeset viewer.