ui tweaks to new launch wizard
authordadubrow
Mon, 15 Feb 2010 14:48:52 -0600
changeset 960 1b51db390dc4
parent 957 945f32ff50e5
child 961 8c95e3acb374
ui tweaks to new launch wizard
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/AbstractLaunchWizardSection.java
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/ConnectToDeviceSection.java
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessSection.java
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsSection.java
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/UnifiedLaunchOptionsPage.java
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/AbstractLaunchWizardSection.java	Mon Feb 15 13:50:12 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/AbstractLaunchWizardSection.java	Mon Feb 15 14:48:52 2010 -0600
@@ -56,11 +56,13 @@
 	protected Button changeButton;
 	protected Composite control;
 	private ISectionChangeListener changeListener;
+	protected final UnifiedLaunchOptionsPage launchOptionsPage;
 
 
-	public AbstractLaunchWizardSection(LaunchWizardData data, String sectionName) {
+	public AbstractLaunchWizardSection(LaunchWizardData data, String sectionName, UnifiedLaunchOptionsPage launchOptionsPage) {
 		this.data = data;
 		this.sectionName = sectionName;
+		this.launchOptionsPage = launchOptionsPage;
 		status = Status.OK_STATUS;
 	}
 	
@@ -167,6 +169,7 @@
 		if (dialog.open() == Window.OK) {
 			data.apply(dialogData);
 			refresh();
+			launchOptionsPage.getWizard().getContainer().getShell().pack();
 		}
 	}
 
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/ConnectToDeviceSection.java	Mon Feb 15 13:50:12 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/ConnectToDeviceSection.java	Mon Feb 15 14:48:52 2010 -0600
@@ -36,7 +36,6 @@
 public class ConnectToDeviceSection extends AbstractLaunchWizardSection implements IConnectionListener {
 
 	private static final String NO_CURRENT_CONNECTION_MSG = "No current connection is defined or detected.";
-	private final UnifiedLaunchOptionsPage launchOptionsPage;
 	private final IConnectionsManager manager;
 
 	/**
@@ -44,8 +43,7 @@
 	 * 
 	 */
 	public ConnectToDeviceSection(LaunchWizardData data, UnifiedLaunchOptionsPage launchOptionsPage) {
-		super(data, "Connect to device");
-		this.launchOptionsPage = launchOptionsPage;
+		super(data, "Connect to device", launchOptionsPage);
 		manager = RemoteConnectionsActivator.getConnectionsManager();
 	}
 	
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessSection.java	Mon Feb 15 13:50:12 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessSection.java	Mon Feb 15 14:48:52 2010 -0600
@@ -36,8 +36,8 @@
  */
 public class DebugRunProcessSection extends AbstractLaunchWizardSection {
 
-	public DebugRunProcessSection(LaunchWizardData data) {
-		super(data, MessageFormat.format("{0} process", data.getModeLabel()));
+	public DebugRunProcessSection(LaunchWizardData data, UnifiedLaunchOptionsPage launchOptionsPage) {
+		super(data, MessageFormat.format("{0} process", data.getModeLabel()), launchOptionsPage);
 	}
 	
 	@Override
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsSection.java	Mon Feb 15 13:50:12 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsSection.java	Mon Feb 15 14:48:52 2010 -0600
@@ -31,8 +31,8 @@
 	/**
 	 * 
 	 */
-	public OtherSettingsSection(LaunchWizardData data) {
-		super(data, "Other settings");
+	public OtherSettingsSection(LaunchWizardData data, UnifiedLaunchOptionsPage launchOptionsPage) {
+		super(data, "Other settings", launchOptionsPage);
 		
 	}
 	
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/UnifiedLaunchOptionsPage.java	Mon Feb 15 13:50:12 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/UnifiedLaunchOptionsPage.java	Mon Feb 15 14:48:52 2010 -0600
@@ -71,10 +71,10 @@
 		section = new ConnectToDeviceSection(data, this);
 		sections.add(section);
 		
-		section = new DebugRunProcessSection(data);
+		section = new DebugRunProcessSection(data, this);
 		sections.add(section);
 		
-		section = new OtherSettingsSection(data);
+		section = new OtherSettingsSection(data, this);
 		sections.add(section);
 	}