From c58ca88557d9fd6a5639cf1fd3520a706f136aaf Mon Sep 17 00:00:00 2001 From: David Inglis Date: Thu, 26 Sep 2002 16:22:35 +0000 Subject: [PATCH] set stop at main on by default --- .../src/org/eclipse/cdt/launch/ui/CDebuggerTab.java | 7 +++---- .../src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java index f0b3b1a5ab2..20b482b5ba1 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java @@ -9,7 +9,6 @@ import org.eclipse.cdt.debug.core.ICDebugConfiguration; import org.eclipse.cdt.launch.ICDTLaunchConfigurationConstants; import org.eclipse.cdt.launch.internal.ui.AbstractCDebuggerTab; import org.eclipse.cdt.launch.internal.ui.LaunchImages; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.core.boot.BootLoader; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; @@ -33,7 +32,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab { protected Button fStopInMain; protected Button fAttachButton; protected Button fRunButton; - + private final boolean DEFAULT_STOP_AT_MAIN = true; public void createControl(Composite parent) { GridData gd; @@ -154,7 +153,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab { public void setDefaults(ILaunchConfigurationWorkingCopy config) { super.setDefaults(config); - config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); + config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, DEFAULT_STOP_AT_MAIN); config.setAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN); @@ -165,7 +164,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab { try { String id = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID, ""); loadDebuggerComboBox(config, id); - if (config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false) == true) { + if (config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, DEFAULT_STOP_AT_MAIN) == true) { fStopInMain.setSelection(true); } } diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java index fdc2cab1eaf..da7792c9cbe 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java @@ -11,7 +11,6 @@ import org.eclipse.cdt.debug.core.CDebugCorePlugin; import org.eclipse.cdt.debug.core.ICDebugConfiguration; import org.eclipse.cdt.launch.ICDTLaunchConfigurationConstants; import org.eclipse.cdt.launch.internal.ui.AbstractCDebuggerTab; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;