Author: rob.stryker(a)jboss.com
Date: 2011-03-02 13:14:56 -0500 (Wed, 02 Mar 2011)
New Revision: 29448
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
Log:
JBIDE-8478 to maintenance 3.2.1
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
===================================================================
---
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-02
17:07:23 UTC (rev 29447)
+++
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-02
18:14:56 UTC (rev 29448)
@@ -70,7 +70,11 @@
public static String createConnectionName(DeltaCloudInstance instance) {
Assert.isLegal(instance != null, "Cannot create connection name: instance is not
defined");
- return instance.getAlias();
+ String connectionName = instance.getAlias();
+ if (connectionName == null || connectionName.length() == 0) {
+ connectionName = instance.getName();
+ }
+ return connectionName;
}
@Deprecated
Show replies by date