Changeset 239 for trunk/EventBenchConsole
- Timestamp:
- 10/05/11 16:55:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDshowSequences.java
r235 r239 1 1 package de.ugoe.cs.eventbench.commands; 2 2 3 import java.security.InvalidParameterException; 3 4 import java.util.List; 4 5 … … 38 39 @Override 39 40 public void run(List<Object> parameters) { 40 String sequencesName = "sequences";41 if (parameters.size() == 1){41 String sequencesName; 42 try { 42 43 sequencesName = (String) parameters.get(0); 44 } catch (Exception e) { 45 throw new InvalidParameterException(); 43 46 } 44 47 … … 56 59 } 57 60 58 // TODO use SWT-GUI instead 59 SequencesDialog sequencesDialog = new SequencesDialog(new Shell(), SWT.NONE); 61 Shell shell = new Shell(SWT.NONE); 62 shell.open(); 63 shell.layout(); 64 shell.setSize(0, 0); 65 SequencesDialog sequencesDialog = new SequencesDialog(shell, SWT.NONE); 60 66 sequencesDialog.open(sequencesName); 61 /* 62 synchronized (Console.getInstance()) { 63 try { 64 Console.getInstance().wait(); 65 } catch (InterruptedException e) { 66 e.printStackTrace(); 67 } 68 }*/ 67 shell.dispose(); 69 68 } 70 69 }
Note: See TracChangeset
for help on using the changeset viewer.