Ignore:
Timestamp:
09/26/11 22:56:36 (13 years ago)
Author:
sherbold
Message:
  • adapted implementations of ConsoleObservers? to the new interfaces (see comment of previous commit).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/SWTConsole.java

    r192 r200  
    55import de.ugoe.cs.util.StringTools; 
    66import de.ugoe.cs.util.console.Console; 
    7 import de.ugoe.cs.util.console.ConsoleObserver; 
     7import de.ugoe.cs.util.console.listener.ICommandListener; 
     8import de.ugoe.cs.util.console.listener.IErrorListener; 
     9import de.ugoe.cs.util.console.listener.IOutputListener; 
     10import de.ugoe.cs.util.console.listener.ITraceListener; 
    811 
    9 public class SWTConsole implements ConsoleObserver { 
     12public class SWTConsole implements IOutputListener, IErrorListener, ITraceListener, ICommandListener { 
    1013 
    1114        Text output; 
    1215         
    1316        public SWTConsole(Text output) { 
    14                 Console.getInstance().registerObserver(this); 
     17                Console.getInstance().registerOutputListener(this); 
     18                Console.getInstance().registerErrorListener(this); 
     19                Console.getInstance().registerTraceListener(this); 
     20                Console.getInstance().registerCommandListener(this); 
    1521                this.output = output; 
    1622        } 
     
    3137                output.append(traceMessage); 
    3238        } 
    33  
    34         @Override 
    35         public void printStacktrace(Exception e) { 
    36                 // TODO print stacktrace 
    37         } 
    3839         
    3940        @Override 
Note: See TracChangeset for help on using the changeset viewer.