Fix UI glitch
authordadubrow
Thu, 18 Feb 2010 15:25:23 -0600
changeset 993 df87e2d581e4
parent 989 680482e5bad7
child 994 1ffe668575e7
Fix UI glitch
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/OtherSettingsDialog.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	Thu Feb 18 14:42:33 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/AbstractLaunchWizardSection.java	Thu Feb 18 15:25:23 2010 -0600
@@ -169,7 +169,6 @@
 		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	Thu Feb 18 14:42:33 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/ConnectToDeviceSection.java	Thu Feb 18 15:25:23 2010 -0600
@@ -94,7 +94,6 @@
 			
 		descriptionLabel.setText(msg);
 		launchOptionsPage.changed();
-		launchOptionsPage.getWizard().getContainer().getShell().pack();
 	}
 	
 	@Override
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsDialog.java	Thu Feb 18 14:42:33 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/OtherSettingsDialog.java	Thu Feb 18 15:25:23 2010 -0600
@@ -69,7 +69,6 @@
 		final Label label = new Label(composite, SWT.WRAP);
 		label.setText(description);
 		GridData labelData = GridDataFactory.fillDefaults().grab(true, false).create();
-		labelData.widthHint = 500;
 		label.setLayoutData(labelData);
 		
 		// spacer
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/UnifiedLaunchOptionsPage.java	Thu Feb 18 14:42:33 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/UnifiedLaunchOptionsPage.java	Thu Feb 18 15:25:23 2010 -0600
@@ -27,6 +27,7 @@
 import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
 
 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
 import com.nokia.cdt.internal.debug.launch.newwizard.IWizardSection.ISectionChangeListener;
@@ -174,5 +175,9 @@
 	 */
 	public void changed() {
 		validatePage();
+		Control control = getControl();
+		if (control != null && !control.isDisposed())
+			getWizard().getContainer().getShell().pack();
+
 	}
 }