Author: adietish
Date: 2011-03-08 06:46:49 -0500 (Tue, 08 Mar 2011)
New Revision: 29599
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
Log:
[JBIDE-8294] added missing progress informations (especially added instance info to the
job title)
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2011-03-08
04:03:10 UTC (rev 29598)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2011-03-08
11:46:49 UTC (rev 29599)
@@ -66,6 +66,9 @@
}
public String getAlias() {
+ if (alias == null || alias.length() == 0) {
+ return instance.getName();
+ }
return alias;
}
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-08
04:03:10 UTC (rev 29598)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-08
11:46:49 UTC (rev 29599)
@@ -70,11 +70,7 @@
public static String createConnectionName(DeltaCloudInstance instance) {
Assert.isLegal(instance != null, "Cannot create connection name: instance is not
defined");
- String connectionName = instance.getAlias();
- if (connectionName == null || connectionName.length() == 0) {
- connectionName = instance.getName();
- }
- return connectionName;
+ return instance.getAlias();
}
/**
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java 2011-03-08
04:03:10 UTC (rev 29598)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateRSEFromInstanceJob.java 2011-03-08
11:46:49 UTC (rev 29599)
@@ -43,7 +43,7 @@
private Job nextJob2 = null;
public CreateRSEFromInstanceJob(DeltaCloudInstance instance, String family) {
- super("Create RSE Host from DeltaCloud Instance", instance, family);
+ super(MessageFormat.format("Create RSE {0}", instance.getAlias()), instance,
family);
}
public IStatus doRun(IProgressMonitor monitor) throws CoreException {
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java 2011-03-08
04:03:10 UTC (rev 29598)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java 2011-03-08
11:46:49 UTC (rev 29599)
@@ -81,6 +81,7 @@
public void setHost(IHost host) {
this.host = host;
+ setName(MessageFormat.format("Create Server {0} From RSE Host",
host.getName()));
}
protected IStatus run(IProgressMonitor monitor) {
Show replies by date