Author: adietish
Date: 2010-11-19 06:06:34 -0500 (Fri, 19 Nov 2010)
New Revision: 26751
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstanceWizard2.java
Log:
[JBIDE-7642] cleanup, extracted method
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstanceWizard2.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstanceWizard2.java 2010-11-19
11:06:06 UTC (rev 26750)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstanceWizard2.java 2010-11-19
11:06:34 UTC (rev 26751)
@@ -94,8 +94,7 @@
cloud.replaceInstance(instance);
cloud.removeInstanceJob(instanceId, this);
String hostname = RSEUtils.createHostName(instance);
- boolean autoConnect = isAutoconnect();
- if (hostname != null && hostname.length() > 0 && autoConnect) {
+ if (hostname != null && hostname.length() > 0 && isAutoconnect())
{
try {
String connectionName = RSEUtils.createConnectionName(instance);
IHost host = RSEUtils.createHost(connectionName,
RSEUtils.createHostName(instance), RSEUtils.getSSHOnlySystemType());