Changeset 828 for trunk/quest-ui-swt/src/main
- Timestamp:
- 09/19/12 11:55:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/SWTConsole.java
r674 r828 38 38 @Override 39 39 public void errorMsg(String errMessage) { 40 appendColored( errMessage, SWT.COLOR_RED);40 appendColored("[ERROR] " + errMessage, SWT.COLOR_RED); 41 41 } 42 42 … … 44 44 public void traceMsg(String traceMessage, Level level) { 45 45 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); 47 51 } 48 52 }
Note: See TracChangeset
for help on using the changeset viewer.