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:
parent
14f991795d
commit
0a2f67ae84
9 changed files with 16 additions and 12 deletions
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue