- Timestamp:
- 09/26/11 22:56:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/CommandHistoryDialog.java
r195 r200 24 24 import de.ugoe.cs.util.console.CommandExecuter; 25 25 import de.ugoe.cs.util.console.Console; 26 import de.ugoe.cs.util.console.ConsoleObserver; 26 import de.ugoe.cs.util.console.listener.ICommandListener; 27 27 28 import org.eclipse.swt.events.DisposeListener; 28 29 import org.eclipse.swt.events.DisposeEvent; … … 30 31 import org.eclipse.swt.events.SelectionEvent; 31 32 32 public class CommandHistoryDialog extends Dialog implements ConsoleObserver {33 public class CommandHistoryDialog extends Dialog implements ICommandListener { 33 34 34 35 protected java.util.List<String> history = new LinkedList<String>(); … … 49 50 setText("Command History"); 50 51 isOpen = false; 51 Console.getInstance().register Observer(this);52 Console.getInstance().registerCommandListener(this); 52 53 } 53 54 … … 160 161 161 162 @Override 162 public void updateText(String newMessage) {163 // ignore164 }165 166 @Override167 public void errStream(String errMessage) {168 // ignore169 }170 171 @Override172 public void trace(String traceMessage) {173 // ignore174 }175 176 @Override177 public void printStacktrace(Exception e) {178 // ignore179 180 }181 182 @Override183 163 public void commandNotification(String command) { 184 164 history.add(command);
Note: See TracChangeset
for help on using the changeset viewer.