Ignore:
Timestamp:
10/06/11 18:06:22 (13 years ago)
Author:
sherbold
Message:
  • improved command line parsing by using JOpt Simple API
File:
1 edited

Legend:

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

    r238 r247  
    11package de.ugoe.cs.eventbench.swt; 
     2 
     3import java.util.List; 
    24 
    35import org.eclipse.swt.widgets.Display; 
     
    2527 */ 
    2628public class MainWindow { 
     29         
     30        private List<String> startupCommands; 
    2731 
    2832        protected Shell shlEventbenchConsole; 
     
    3943        protected CommandHistoryDialog historyDialog; 
    4044 
     45        public MainWindow(List<String> startupCommands) { 
     46                this.startupCommands = startupCommands; 
     47        } 
     48         
    4149        /** 
    4250         * <p> 
     
    5361                shlEventbenchConsole.open(); 
    5462                shlEventbenchConsole.layout(); 
     63                for(String command : startupCommands ) { 
     64                        CommandExecuter.getInstance().exec(command); 
     65                } 
    5566                while (!shlEventbenchConsole.isDisposed()) { 
    5667                        if (!display.readAndDispatch()) { 
Note: See TracChangeset for help on using the changeset viewer.