Author: adietish
Date: 2010-12-01 11:48:13 -0500 (Wed, 01 Dec 2010)
New Revision: 27068
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java
Log:
cleanup
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java 2010-12-01
16:46:27 UTC (rev 27067)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java 2010-12-01
16:48:13 UTC (rev 27068)
@@ -87,7 +87,7 @@
if (newInput != null) {
if (newInput instanceof DeltaCloudImage[]) {
images = filter((DeltaCloudImage[]) newInput);
- } else {
+ } else if (newInput instanceof DeltaCloud){
cloud = (DeltaCloud) newInput;
try {
images = filter(cloud.getImages());
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java 2010-12-01
16:46:27 UTC (rev 27067)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java 2010-12-01
16:48:13 UTC (rev 27068)
@@ -83,7 +83,7 @@
if (newInput != null) {
if (newInput instanceof DeltaCloudInstance[]) {
instances = filter((DeltaCloudInstance[]) newInput);
- } else {
+ } else if (newInput instanceof DeltaCloud) {
cloud = (DeltaCloud) newInput;
try {
instances = filter(cloud.getInstances());