Author: adietish
Date: 2010-11-15 14:39:14 -0500 (Mon, 15 Nov 2010)
New Revision: 26583
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/ShowInRemoteSystemExplorerHandler.java
Log:
[JBIDE-7603] added error dialogs and removed duplicate code
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-15 19:35:05
UTC (rev 26582)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-15 19:39:14
UTC (rev 26583)
@@ -1,5 +1,7 @@
2010-11-15 André Dietisheim <adietish(a)redhat.com>
+ * src/org/jboss/tools/deltacloud/ui/commands/ShowInRemoteSystemExplorerHandler.java
(launchRemoteSystemExplorer):
+ [JBIDE-7603] added error dialogs and removed duplicate code
* plugin.xml:
[JBIDE-7599] corrected refresh handler activation to remove conflicts between the 3
refresh handlers
(cloud-, image-, instance-)
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/ShowInRemoteSystemExplorerHandler.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/ShowInRemoteSystemExplorerHandler.java 2010-11-15
19:35:05 UTC (rev 26582)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/ShowInRemoteSystemExplorerHandler.java 2010-11-15
19:39:14 UTC (rev 26583)
@@ -14,6 +14,7 @@
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
+import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -66,6 +67,8 @@
private void launchRemoteSystemExplorer(final DeltaCloudInstance instance, final Shell
shell) throws Exception {
String hostname = instance.getHostName();
IRSESystemType sshType = getRSESystemType();
+ // TODO: internationalize string
+ Assert.isTrue(sshType != null, "Remote System Explorer could not initialize SSH
subsystem: ssh type not found");
String connectionName = instance.getName() + " [" + instance.getId() +
"]"; //$NON-NLS-1$ //$NON-NLS-2$
ISystemRegistry registry = SystemStartHere.getSystemRegistry();
IHost host = registry.createHost(sshType, connectionName, hostname, null);
Show replies by date