Author: jjohnstn
Date: 2010-10-14 16:47:20 -0400 (Thu, 14 Oct 2010)
New Revision: 25842
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/InstanceView.java
Log:
2010-10-14 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (createPartControl): Fix
filtering
label showing up in wrong area and when there is no filtering occurring.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-10-14 20:20:04
UTC (rev 25841)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-10-14 20:47:20
UTC (rev 25842)
@@ -1,3 +1,8 @@
+2010-10-14 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (createPartControl): Fix
filtering
+ label showing up in wrong area and when there is no filtering occurring.
+
2010-10-13 Jeff Johnston <jjohnstn(a)redhat.com>
[JBIDE-7194]
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-10-14
20:20:04 UTC (rev 25841)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-10-14
20:47:20 UTC (rev 25842)
@@ -250,6 +250,8 @@
currCloud.removeInstanceListListener(parentView);
viewer.setInput(currCloud);
currCloud.addInstanceListListener(parentView);
+ IInstanceFilter filter = currCloud.getInstanceFilter();
+ filterLabel.setVisible(!filter.toString().equals(IInstanceFilter.ALL_STRING));
}
Point p1 = cloudSelectorLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
@@ -267,6 +269,11 @@
cloudSelector.setLayoutData(f);
f = new FormData();
+ f.top = new FormAttachment(0, 5 + centering);
+ f.right = new FormAttachment(100, -10);
+ filterLabel.setLayoutData(f);
+
+ f = new FormData();
f.top = new FormAttachment(cloudSelector, 8);
f.left = new FormAttachment(0, 0);
f.right = new FormAttachment(100, 0);
Show replies by date