Explorar o código

Bug fix for layer change

dominik %!s(int64=8) %!d(string=hai) anos
pai
achega
eb37889961

+ 2 - 0
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/main/GraphManager.java

@@ -128,6 +128,8 @@ public class GraphManager {
 		Main.getInstance().getVisualizer().getView()
 				.setPreferredSize(new Dimension((int) pane.getWidth() - 5, (int) pane.getHeight() - 5));
 		guiController.swingNode.setContent(Main.getInstance().getVisualizer().getView());
+		
+		Main.getInstance().setCreateModus(CreateModus.CREATE_NONE);
 	}
 
 	/**

+ 0 - 14
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/ButtonManager.java

@@ -27,20 +27,6 @@ public class ButtonManager {
 	 */
 	public static final Boolean CREATE_MORE_THEN_ONE = true; 
 
-	/**
-	 * Reference to the GUIController used by the app for access to UI Elements.
-	 */
-	private static GUIController guiController;
-
-	/**
-	 * Initializes the ButtonManager by getting access to the GUIController.
-	 * 
-	 * @param guiCon
-	 *            a reference to the GUIController used by the App
-	 */
-	public static void initialize(GUIController guiCon) {
-		guiController = guiCon;
-	}
 	/**
 	 * Handler for zoom in Button
 	 */