1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 18:35:32 +02:00

Terminal: Fix connector and launcher delegate ids

This commit is contained in:
Uwe Stieber 2015-04-17 12:39:30 +02:00
parent 14f991795d
commit 0a2f67ae84
9 changed files with 16 additions and 12 deletions

View file

@ -100,7 +100,7 @@ public class LocalWizardConfigurationPanel extends AbstractExtendedConfiguration
@Override
public void extractData(Map<String, Object> data) {
// set the terminal connector id for local terminal
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.terminal.view.ui.local.LocalConnector"); //$NON-NLS-1$
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.terminal.connector.local.LocalConnector"); //$NON-NLS-1$
// Store the encoding
data.put(ITerminalsConnectorConstants.PROP_ENCODING, getEncoding());

View file

@ -278,7 +278,7 @@ public class LocalLauncherDelegate extends AbstractLauncherDelegate {
// Check for the terminal connector id
String connectorId = (String)properties.get(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID);
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.view.ui.local.LocalConnector"; //$NON-NLS-1$
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.connector.local.LocalConnector"; //$NON-NLS-1$
// Extract the process properties using defaults
String image;

View file

@ -71,7 +71,7 @@ public class ProcessLauncherDelegate extends AbstractLauncherDelegate {
// Check for the terminal connector id
String connectorId = (String)properties.get(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID);
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.view.ui.ProcessConnector"; //$NON-NLS-1$
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.connector.process.ProcessConnector"; //$NON-NLS-1$
// Extract the process properties
String image = (String)properties.get(ITerminalsConnectorConstants.PROP_PROCESS_PATH);

View file

@ -164,7 +164,7 @@ public class SshWizardConfigurationPanel extends AbstractExtendedConfigurationPa
if (data == null) return;
// set the terminal connector id for ssh
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.internal.terminal.ssh.SshConnector"); //$NON-NLS-1$
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.terminal.connector.ssh.connector.SshConnector"); //$NON-NLS-1$
sshSettingsPage.saveSettings();
data.put(ITerminalsConnectorConstants.PROP_IP_HOST,sshSettings.getHost());

View file

@ -121,7 +121,7 @@ public class SshLauncherDelegate extends AbstractLauncherDelegate {
// Check for the terminal connector id
String connectorId = (String)properties.get(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID);
if (connectorId == null) connectorId = "org.eclipse.tm.internal.terminal.ssh.SshConnector"; //$NON-NLS-1$
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.connector.ssh.connector.SshConnector"; //$NON-NLS-1$
// Extract the ssh properties
String host = (String)properties.get(ITerminalsConnectorConstants.PROP_IP_HOST);
@ -141,7 +141,9 @@ public class SshLauncherDelegate extends AbstractLauncherDelegate {
}
// The real port to connect to is port + portOffset
port = Integer.toString(Integer.decode(port).intValue() + portOffset);
if (port != null) {
port = Integer.toString(Integer.decode(port).intValue() + portOffset);
}
// Construct the ssh settings store
ISettingsStore store = new SettingsStore();

View file

@ -118,7 +118,7 @@ public class TelnetWizardConfigurationPanel extends AbstractExtendedConfiguratio
if (data == null) return;
// set the terminal connector id for ssh
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.internal.terminal.telnet.TelnetConnector"); //$NON-NLS-1$
data.put(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID, "org.eclipse.tm.terminal.connector.telnet.TelnetConnector"); //$NON-NLS-1$
telnetSettingsPage.saveSettings();
data.put(ITerminalsConnectorConstants.PROP_IP_HOST,telnetSettings.getHost());

View file

@ -120,7 +120,7 @@ public class TelnetLauncherDelegate extends AbstractLauncherDelegate {
// Check for the terminal connector id
String connectorId = (String)properties.get(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID);
if (connectorId == null) connectorId = "org.eclipse.tm.internal.terminal.telnet.TelnetConnector"; //$NON-NLS-1$
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.connector.telnet.TelnetConnector"; //$NON-NLS-1$
// Extract the telnet properties
String host = (String)properties.get(ITerminalsConnectorConstants.PROP_IP_HOST);
@ -136,7 +136,9 @@ public class TelnetLauncherDelegate extends AbstractLauncherDelegate {
}
// The real port to connect to is port + portOffset
port = Integer.toString(Integer.decode(port).intValue() + portOffset);
if (port != null) {
port = Integer.toString(Integer.decode(port).intValue() + portOffset);
}
// Construct the terminal settings store
ISettingsStore store = new SettingsStore();

View file

@ -112,7 +112,7 @@
<extension point="org.eclipse.tm.terminal.control.connectors">
<connector
name="%TerminalConnector.streams"
id="org.eclipse.tm.terminal.view.ui.StreamsConnector"
id="org.eclipse.tm.terminal.connector.streams.StreamsConnector"
hidden="true"
class="org.eclipse.tm.terminal.view.ui.streams.StreamsConnector"/>
</extension>
@ -138,7 +138,7 @@
<delegate
class="org.eclipse.tm.terminal.view.ui.streams.StreamsLauncherDelegate"
hidden="true"
id="org.eclipse.tm.terminal.view.ui.launcher.streams"
id="org.eclipse.tm.terminal.connector.streams.launcher.streams"
label="%StreamsLauncherDelegate.label">
</delegate>
</extension>

View file

@ -72,7 +72,7 @@ public class StreamsLauncherDelegate extends AbstractLauncherDelegate {
// Check for the terminal connector id
String connectorId = (String)properties.get(ITerminalsConnectorConstants.PROP_TERMINAL_CONNECTOR_ID);
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.view.ui.StreamsConnector"; //$NON-NLS-1$
if (connectorId == null) connectorId = "org.eclipse.tm.terminal.connector.streams.StreamsConnector"; //$NON-NLS-1$
// Extract the streams properties
OutputStream stdin = (OutputStream)properties.get(ITerminalsConnectorConstants.PROP_STREAMS_STDIN);