Author: adietish
Date: 2011-03-07 09:46:25 -0500 (Mon, 07 Mar 2011)
New Revision: 29566
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java
Log:
removed deprecated method calls
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java
===================================================================
---
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java 2011-03-07
14:08:40 UTC (rev 29565)
+++
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java 2011-03-07
14:46:25 UTC (rev 29566)
@@ -19,8 +19,6 @@
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.osgi.util.NLS;
import org.eclipse.rse.core.model.IHost;
-import org.eclipse.rse.core.subsystems.IConnectorService;
-import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.swt.widgets.Display;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
@@ -51,7 +49,7 @@
return Status.CANCEL_STATUS;
}
- String hostname = RSEUtils.createHostName(instance);
+ String hostname = RSEUtils.createRSEHostName(instance);
if (hostname == null || hostname.length() <= 0) {
return Status.CANCEL_STATUS;
}
@@ -60,8 +58,10 @@
try {
monitor.beginTask("Create RSE Server", 100);
String connectionName = RSEUtils.createConnectionName(instance);
- IHost host = RSEUtils.createHost(connectionName,
- RSEUtils.createHostName(instance),
+ IHost host = RSEUtils.createHost(
+ "jboss",
+ connectionName,
+ RSEUtils.createRSEHostName(instance),
RSEUtils.getSSHOnlySystemType(),
RSEUtils.getSystemRegistry());
if( nextJob2 != null && nextJob2 instanceof CreateServerFromRSEJob) {
Show replies by date