Index: /trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDshowSequences.java
===================================================================
--- /trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDshowSequences.java	(revision 136)
+++ /trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDshowSequences.java	(revision 137)
@@ -3,4 +3,5 @@
 import java.security.InvalidParameterException;
 import java.util.List;
+import java.util.concurrent.Semaphore;
 
 import de.ugoe.cs.eventbench.swing.DlgSequences;
@@ -11,26 +12,38 @@
 
 public class CMDshowSequences implements Command {
-	
+
 	public void help() {
 		Console.println("Usage: showSequences");
 	}
-	
+
 	@SuppressWarnings("unchecked")
 	public void run(List<Object> parameters) {
-		
-		if(parameters.size() > 0) throw new InvalidParameterException();
-			
-		
+
+		if (parameters.size() > 0)
+			throw new InvalidParameterException();
+
 		List<List<Event<?>>> containedSequences = null;
-		
+
 		try {
-			containedSequences = (List<List<Event<?>>>) GlobalDataContainer.getInstance().getData("sequences");
-		}
-		catch(ClassCastException e) {
+			containedSequences = (List<List<Event<?>>>) GlobalDataContainer
+					.getInstance().getData("sequences");
+		} catch (ClassCastException e) {
 			Console.println("Not able to cast Data in GlobalDataContainer to List of Sequences");
 		}
-		
-		if(containedSequences == null) Console.printerrln("No sequences found.");
-		else DlgSequences.showDialog();	
+
+		if (containedSequences == null) {
+			Console.printerrln("No sequences found.");
+		} else {
+
+			DlgSequences.showDialog();
+
+			synchronized (Console.getInstance()) {
+				try {
+					Console.getInstance().wait();
+				} catch (InterruptedException e) {
+					e.printStackTrace();
+				}
+			}
+		}
 	}
 }
