Author: adietish
Date: 2010-12-09 13:37:56 -0500 (Thu, 09 Dec 2010)
New Revision: 27290
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
Log:
[JBIDE-7694] relayouting combo parent when a new cloud is added -> resizes the combo
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-09 18:36:55
UTC (rev 27289)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-09 18:37:56
UTC (rev 27290)
@@ -1,5 +1,8 @@
2010-12-09 André Dietisheim <adietish(a)redhat.com>
+ *
src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
+ (cloudsChanged):
+ [JBIDE-7694] relayouting combo parent when a new cloud is added -> resizes the combo
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java
(asyncGetProfiles):
[JBIDE-7818] replaced threads by jobs (so that I can implement proper job scheduling
rules across deltacloud tools),
cleaned code - split code in several methods, removed profile combo initialization that
was done in parallel to the
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-09
18:36:55 UTC (rev 27289)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-09
18:37:56 UTC (rev 27290)
@@ -115,6 +115,8 @@
}
};
+ private Composite container;
+
private boolean isNewCloud(DeltaCloud cloud) {
return currentCloud == null
|| !currentCloud.equals(cloud);
@@ -151,7 +153,7 @@
@Override
public void createPartControl(Composite parent) {
- Composite container = new Composite(parent, SWT.NULL);
+ this.container = new Composite(parent, SWT.NULL);
FormLayout layout = new FormLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
@@ -362,6 +364,7 @@
currentCloudSelector.setText("");
setViewerInput(null);
}
+ container.layout(true, true);
}
private String[] toCloudNames(DeltaCloud[] clouds) {
Show replies by date