ソースを参照

Bugfix: No perspective switch on simulation start

Andreas Mülder 12 年 前
コミット
68d0ebd430

+ 2 - 1
plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/SimulationActivator.java

@@ -41,13 +41,14 @@ public class SimulationActivator extends AbstractUIPlugin {
 		super.start(context);
 		plugin = this;
 		SCTHotModelReplacementManager.INSTANCE.addReplacementListener(hotModelReplacementListener);
+		DebugPlugin.getDefault().getLaunchManager().addLaunchListener(manager);
 	}
 
 	public void stop(BundleContext context) throws Exception {
 		plugin = null;
 		super.stop(context);
 		SCTHotModelReplacementManager.INSTANCE.removeReplacementListener(hotModelReplacementListener);
-		DebugPlugin.getDefault().getLaunchManager().addLaunchListener(manager);
+		DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(manager);
 	}
 
 	public static SimulationActivator getDefault() {