Author: adietish
Date: 2010-12-10 13:52:56 -0500 (Fri, 10 Dec 2010)
New Revision: 27371
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-7872] fixed case where new cloud == null was erroneously detected as new selected
cloud
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 17:02:53
UTC (rev 27370)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 18:52:56
UTC (rev 27371)
@@ -1,5 +1,8 @@
2010-12-10 André Dietisheim <adietish(a)redhat.com>
+ *
src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
+ (isNewCloud):
+ [JBIDE-7872] fixed case where new cloud == null was erroneously detected as new selected
cloud
* src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java:
* src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java:
[JBIDE-7738] RefreshImagesHandler and RefreshInstancesHandler are now subclasses of
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-10
17:02:53 UTC (rev 27370)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-10
18:52:56 UTC (rev 27371)
@@ -147,6 +147,10 @@
}
private boolean isNewCloud(DeltaCloud cloud) {
+ if (cloud == null) {
+ return false;
+ }
+
return currentCloud == null
|| !currentCloud.equals(cloud);
}
@@ -396,7 +400,7 @@
cloud.addPropertyChangeListener(DeltaCloud.PROP_NAME, this);
}
}
-
+
protected void removePropertyChangeListener(DeltaCloud cloud) {
if (cloud != null) {
cloud.removePropertyChangeListener(this);
Show replies by date