Author: adietish
Date: 2010-12-13 04:28:46 -0500 (Mon, 13 Dec 2010)
New Revision: 27397
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java
Log:
[JBIDE-7864] added hasImages property tester, rename CreateInstanceHandler2 to
CreateInstanceFromAnyImage,renamed CreateInstanceHandler to
CreateInstanceFromSpecificImage
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java 2010-12-13
09:27:23 UTC (rev 27396)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java 2010-12-13
09:28:46 UTC (rev 27397)
@@ -16,9 +16,9 @@
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudImage;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem;
import org.jboss.tools.deltacloud.ui.views.cloud.ImageItem;
import org.jboss.tools.deltacloud.ui.views.cloud.InstanceItem;
-import org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem;
import org.jboss.tools.internal.deltacloud.ui.utils.CloudViewElementUtils;
public class CloudViewElementAdapterFactory implements IAdapterFactory {
@@ -48,7 +48,7 @@
}
}
- private DeltaCloudInstance getDeltaCloudInstance(DeltaCloudViewItem element) {
+ private DeltaCloudInstance getDeltaCloudInstance(DeltaCloudViewItem<?> element) {
if (element instanceof InstanceItem) {
return (DeltaCloudInstance) element.getModel();
} else {
@@ -56,7 +56,7 @@
}
}
- private DeltaCloudImage getDeltaCloudImage(DeltaCloudViewItem element) {
+ private DeltaCloudImage getDeltaCloudImage(DeltaCloudViewItem<?> element) {
if (element instanceof ImageItem) {
return (DeltaCloudImage) element.getModel();
} else {
Show replies by date