summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Navarro2013-03-11 22:24:23 (EDT)
committer Jeffrey Overbey2013-03-11 22:24:23 (EDT)
commit17aa0643c6984ec82266aa58a6f473c9143f8531 (patch)
tree16fad34bb0b5fa93625354d9b2ff81c2f502b53c
parentbc3bad79722181e2dc6d4205ae68fdfb66a06031 (diff)
downloadorg.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.zip
org.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.tar.gz
org.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.tar.bz2
Bug 394121 - Module list may not display after checking Enable Env Mgmt
-rw-r--r--core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java b/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java
index 494b8fd..596436e 100644
--- a/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java
+++ b/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 University of Illinois and others.
+ * Copyright (c) 2012, 2013 University of Illinois and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Jeff Overbey (Illinois) - initial API and implementation
+ * Chris Navarro (Illinois) - fix for Bug 394121
*******************************************************************************/
package org.eclipse.ptp.ems.ui;
@@ -127,10 +128,12 @@ public final class EnvManagerConfigWidget extends Composite {
stackLayout.topControl = envConfigTextbox;
} else {
stackLayout.topControl = envConfigChecklist;
+ stack.setSize(envConfigChecklist.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
} else {
stackLayout.topControl = noEnvConfigLabel;
}
+ stack.getParent().layout();
stack.layout();
}
@@ -163,7 +166,7 @@ public final class EnvManagerConfigWidget extends Composite {
private void createStack(Composite composite) {
stack = new Composite(composite, SWT.NONE);
- stack.setLayoutData(new GridData(GridData.FILL_BOTH));
+ stack.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
stackLayout = new StackLayout();
stack.setLayout(stackLayout);
}