فهرست منبع

Bugfix: Debug Launch configuration tabs missing

Andreas Mülder 12 سال پیش
والد
کامیت
b50ed793b5

+ 7 - 2
plugins/org.yakindu.sct.simulation.core/src/org/yakindu/sct/simulation/core/debugmodel/SCTDebugTarget.java

@@ -74,6 +74,9 @@ public class SCTDebugTarget extends SCTDebugElement implements IDebugTarget {
 		DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener(this);
 		executionControl = container.getExecutionControl();
 		container.getExecutionContext().eAdapters().add(updater);
+	}
+
+	public void start() {
 		executionControl.start();
 	}
 
@@ -227,7 +230,9 @@ public class SCTDebugTarget extends SCTDebugElement implements IDebugTarget {
 	public boolean isStepping() {
 		return stepping;
 	}
-	//Fires fireChangeEvents to refresh the DebugUI TreeViewer with the active states
+
+	// Fires fireChangeEvents to refresh the DebugUI TreeViewer with the active
+	// states
 	protected class UpdateTreeAdapter extends CrossDocumentContentAdapter {
 
 		@Override
@@ -237,7 +242,7 @@ public class SCTDebugTarget extends SCTDebugElement implements IDebugTarget {
 
 		@Override
 		public void notifyChanged(Notification notification) {
-			if (notification.getFeature() == SRuntimePackage.Literals.EXECUTION_CONTEXT__ACTIVE_STATES){
+			if (notification.getFeature() == SRuntimePackage.Literals.EXECUTION_CONTEXT__ACTIVE_STATES) {
 				fireChangeEvent(DebugEvent.CONTENT);
 			}
 			super.notifyChanged(notification);

+ 2 - 2
plugins/org.yakindu.sct.simulation.core/src/org/yakindu/sct/simulation/core/launch/AbstractSCTLaunchConfigurationDelegate.java

@@ -18,7 +18,6 @@ import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.debug.core.ILaunch;
 import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.model.IDebugTarget;
 import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
 import org.eclipse.debug.core.model.LaunchConfigurationDelegate;
 import org.yakindu.sct.model.sgraph.Statechart;
@@ -44,8 +43,9 @@ public abstract class AbstractSCTLaunchConfigurationDelegate extends LaunchConfi
 		String filename = configuration.getAttribute(FILE_NAME, DEFAULT_FILE_NAME);
 		Statechart statechart = ResourceUtil.loadStatechart(filename);
 		Assert.isNotNull(statechart);
-		IDebugTarget target = new SCTDebugTarget(launch, statechart, createExecutionContainer(launch, statechart));
+		SCTDebugTarget target = new SCTDebugTarget(launch, statechart, createExecutionContainer(launch, statechart));
 		launch.addDebugTarget(target);
+		target.start();
 
 	}