Changeset 828


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
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java

    r788 r828  
    572572            else 
    573573            { 
    574                 Console.printerrln("log file has an error, as it contains a key up event on key " + 
     574                Console.traceln(Level.SEVERE, "log file has an error, as it contains a key up event on key " + 
    575575                                   key + " for which there is no preceeding key down event"); 
    576576            } 
  • 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.