Author: adietish
Date: 2011-02-14 10:52:58 -0500 (Mon, 14 Feb 2011)
New Revision: 29138
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
Log:
[JBIDE-8294]
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-02-14
15:33:23 UTC (rev 29137)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java 2011-02-14
15:52:58 UTC (rev 29138)
@@ -88,6 +88,7 @@
protected IStatus run(IProgressMonitor monitor) {
try {
+ monitor.setTaskName(MessageFormat.format("Creating server adapter for
{0}...", getHostName()));
if (type.equals(CREATE_DEPLOY_ONLY_SERVER)) {
createDeployOnlyServer();
} else if (type.equals(CHECK_SERVER_FOR_DETAILS)) {
@@ -97,6 +98,8 @@
}
} catch (CoreException ce) {
return ce.getStatus();
+ } finally {
+ monitor.done();
}
/**
*
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.jface.snippets/
@@ -117,6 +120,14 @@
return Status.OK_STATUS;
}
+ private Object getHostName() {
+ String hostname = "";
+ if (host != null) {
+ hostname = host.getName();
+ }
+ return hostname;
+ }
+
protected IServer createDeployOnlyServer() throws CoreException {
IServer server = createDeployOnlyServerWithRuntime(data[0], data[0], imageId);
server = RSEUtils.setServerToRSEMode(server, host);