Author: adietish
Date: 2010-12-13 03:13:01 -0500 (Mon, 13 Dec 2010)
New Revision: 27393
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java
Log:
corrected warnings
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13
06:50:40 UTC (rev 27392)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13
08:13:01 UTC (rev 27393)
@@ -35,9 +35,9 @@
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
- DeltaCloudViewItem element = UIUtils.getFirstAdaptedElement(selection,
DeltaCloudViewItem.class);
+ DeltaCloudViewItem<?> element = UIUtils.getFirstAdaptedElement(selection,
DeltaCloudViewItem.class);
while (element != null && !(element instanceof CloudItem)) {
- element = (DeltaCloudViewItem) element.getParent();
+ element = (DeltaCloudViewItem<?>) element.getParent();
}
if (element != null) {
CloudItem cloudElement = (CloudItem) element;
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java 2010-12-13
06:50:40 UTC (rev 27392)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java 2010-12-13
08:13:01 UTC (rev 27393)
@@ -158,7 +158,7 @@
return null;
}
- DeltaCloud cloud = getDeltaCloud((DeltaCloudViewItem) item);
+ DeltaCloud cloud = getDeltaCloud((DeltaCloudViewItem<?>) item);
if (cloud == null) {
return null;
@@ -166,7 +166,7 @@
return cloud;
}
- private DeltaCloud getDeltaCloud(DeltaCloudViewItem element) {
+ private DeltaCloud getDeltaCloud(DeltaCloudViewItem<?> element) {
if (element == null) {
return null;
}
@@ -175,7 +175,7 @@
return (DeltaCloud) cloud;
}
- return getDeltaCloud((DeltaCloudViewItem) element.getParent());
+ return getDeltaCloud((DeltaCloudViewItem<?>) element.getParent());
}
private void removeDeltaClouds(Object[] deltaClouds) throws DeltaCloudException {
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java 2010-12-13
06:50:40 UTC (rev 27392)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java 2010-12-13
08:13:01 UTC (rev 27393)
@@ -35,9 +35,9 @@
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
- DeltaCloudViewItem element = UIUtils.getFirstAdaptedElement(selection,
DeltaCloudViewItem.class);
+ DeltaCloudViewItem<?> element = UIUtils.getFirstAdaptedElement(selection,
DeltaCloudViewItem.class);
while (element != null && !(element instanceof CloudItem)) {
- element = (DeltaCloudViewItem) element.getParent();
+ element = (DeltaCloudViewItem<?>) element.getParent();
}
if (element != null) {
CloudItem cloudElement = (CloudItem) element;
Show replies by date