Changeset 188 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
- Timestamp:
- 09/23/11 04:53:44 (13 years ago)
- Location:
- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
- Files:
-
- 7 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/Runner.java
r171 r188 1 1 package de.ugoe.cs.eventbench; 2 2 3 import de.ugoe.cs.eventbench.swt.MainWindow; 3 4 import de.ugoe.cs.util.console.CommandExecuter; 4 5 import de.ugoe.cs.util.console.Console; … … 36 37 "de.ugoe.cs.eventbench.web.commands"); 37 38 TextConsole textConsole = new TextConsole(); 39 boolean swtGuiRunning = false; 38 40 if (args.length >= 1) { 39 for (String command : args) { 40 CommandExecuter.getInstance().exec(command); 41 if( args[0].equals("-swt") ) { 42 MainWindow mainWindow = new MainWindow(); 43 mainWindow.open(); 44 swtGuiRunning = true; 45 } else { 46 for (String command : args) { 47 CommandExecuter.getInstance().exec(command); 48 } 41 49 } 42 50 } 43 textConsole.run(true); 51 if( !swtGuiRunning ) { 52 textConsole.run(true); 53 } 44 54 } 45 55
Note: See TracChangeset
for help on using the changeset viewer.