package BlueTurtle.TSE;

import java.io.IOException;


import BlueTurtle.gui.GUI;

/**
 * Main class to run the system.
 * 
 * @author BlueTurtle.
 *
 */
public final class Main {
	
	
	/**
	 * Private constructor for this utility class.
	 */
	private Main() {
		// not called
	}

	/**
	 * All the modes (programming languages).
	 * 
	 * @author BlueTurtle.
	 *
	 */
	enum Mode {
		JAVA
	}

	private static Controller controller;
	private static Mode currentMode = Mode.JAVA;

	/**
	 * Main method.
	 * 
	 * @param args
	 *            the arguments.
	 * @throws IOException
	 *             throws an exception if a problem is encountered during the
	 *             execution of the controller.
	 */
	public static void main(String[] args) throws IOException {

		switch (currentMode) {
		case JAVA:
			controller = new JavaController();
			GUI gui = new GUI();
			gui.startGUI();
			break;
		default:
			break;
		}
		System.out.println("Done.");
	}

	/**
	 * Run compute all the necessary information needed for the visualization.
	 * 
	 * @throws IOException
	 *             throws an exception if problem is encountered while computing
	 *             the information.
	 */
	public static void runVisualization() throws IOException {
		controller.execute();
	}
}

@@ -176,107 +176,8 @@
 in %7B
-%0A%09%0A%09%0A%09/**%0A%09 * Private constructor for this utility class.%0A%09 */%0A%09private Main() %7B%0A%09%09// not called%0A%09%7D
 %0A%0A%09/
@@ -369,16 +369,114 @@
 e.JAVA;%0A
+%09%0A%09/**%0A%09 * Private constructor for this utility class.%0A%09 */%0A%09private Main() %7B%0A%09%09// not called%0A%09%7D%0A%09
 %0A%09/**%0A%09 

change code style based on Clinton's feedback