Author: adietish
Date: 2011-05-27 04:19:08 -0400 (Fri, 27 May 2011)
New Revision: 31542
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java
Log:
[JBIDE-8860] displaying empty string instead of "null" if instance has no key
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java
===================================================================
---
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java 2011-05-27
08:18:51 UTC (rev 31541)
+++
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java 2011-05-27
08:19:08 UTC (rev 31542)
@@ -16,6 +16,7 @@
import org.eclipse.ui.views.properties.IPropertySource;
import org.eclipse.ui.views.properties.PropertyDescriptor;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.core.client.utils.StringUtils;
import org.jboss.tools.deltacloud.ui.views.CVMessages;
import org.jboss.tools.deltacloud.ui.views.cloud.InstanceItem;
@@ -121,7 +122,7 @@
return instance.getImageId();
}
if (id.equals(PROPERTY_KEYNAME)) {
- return instance.getKeyId();
+ return StringUtils.null2EmptyString(instance.getKeyId());
}
if (id.equals(PROPERTY_STATE)) {
return instance.getState();