Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-08-12 12:59:08 -0400
committerUwe Stieber2012-08-12 12:59:08 -0400
commit8e75b57e4a49282013a4d70d8844373bbe623c96 (patch)
treeefa7351f6390519ef1d2725f77f6e355255dbb5a /target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh
parent87db079b512afec89f418e1b2797d9da2127e112 (diff)
downloadorg.eclipse.tcf-8e75b57e4a49282013a4d70d8844373bbe623c96.tar.gz
org.eclipse.tcf-8e75b57e4a49282013a4d70d8844373bbe623c96.tar.xz
org.eclipse.tcf-8e75b57e4a49282013a4d70d8844373bbe623c96.zip
Target Explorer: Bug 378625 - [Terminals] Cannot open two tabs to the same host in one view
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/launcher/SshLauncherDelegate.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/launcher/SshLauncherDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/launcher/SshLauncherDelegate.java
index 5e898e455..9ae047c8d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/launcher/SshLauncherDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/launcher/SshLauncherDelegate.java
@@ -13,6 +13,7 @@ package org.eclipse.tcf.te.ui.terminals.ssh.launcher;
import java.text.DateFormat;
import java.util.Date;
+import org.eclipse.core.runtime.Assert;
import org.eclipse.osgi.util.NLS;
import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
@@ -51,12 +52,20 @@ public class SshLauncherDelegate extends AbstractLauncherDelegate {
*/
@Override
public void execute(IPropertiesContainer properties, ICallback callback) {
+ Assert.isNotNull(properties);
+
// Set the terminal tab title
String terminalTitle = getTerminalTitle(properties);
if (terminalTitle != null) {
properties.setProperty(ITerminalsConnectorConstants.PROP_TITLE, terminalTitle);
}
+ // For SSH terminals, force a new terminal tab each time it is launched,
+ // if not set otherwise from outside
+ if (properties.getProperty(ITerminalsConnectorConstants.PROP_FORCE_NEW) == null) {
+ properties.setProperty(ITerminalsConnectorConstants.PROP_FORCE_NEW, true);
+ }
+
// Get the terminal service
ITerminalService terminal = ServiceManager.getInstance().getService(ITerminalService.class);
// If not available, we cannot fulfill this request

Back to the top