diff --git a/bundles/org.eclipse.remote.core/plugin.xml b/bundles/org.eclipse.remote.core/plugin.xml
index 85324367874..6d5154b1b81 100644
--- a/bundles/org.eclipse.remote.core/plugin.xml
+++ b/bundles/org.eclipse.remote.core/plugin.xml
@@ -40,6 +40,11 @@
factory="org.eclipse.remote.internal.core.services.local.LocalCommandShellService$Factory"
service="org.eclipse.remote.core.IRemoteCommandShellService">
+
+
T getService(IRemoteConnection remoteConnection, Class service) {
+ if (service.equals(IRemoteConnectionHostService.class)) {
+ return (T) new LocalConnectionHostService(remoteConnection);
+ }
+ return null;
+ }
+ }
+
+ @Override
+ public IRemoteConnection getRemoteConnection() {
+ return this.connection;
+ }
+
+ @Override
+ public String getHostname() {
+ try {
+ return InetAddress.getLocalHost().getHostName();
+ } catch (UnknownHostException e) {
+ return "unknown"; //$NON-NLS-1$
+ }
+ }
+
+ @Override
+ public int getPort() {
+ return 0;
+ }
+
+ @Override
+ public int getTimeout() {
+ return 0;
+ }
+
+ @Override
+ public boolean useLoginShell() {
+ return true;
+ }
+
+ @Override
+ public String getUsername() {
+ return System.getProperty("user.name"); //$NON-NLS-1$
+ }
+
+ @Override
+ public void setHostname(String hostname) {
+ // Ignored
+ }
+
+ @Override
+ public void setPassphrase(String passphrase) {
+ // Ignored
+ }
+
+ @Override
+ public void setPassword(String password) {
+ // Ignored
+ }
+
+ @Override
+ public void setPort(int port) {
+ // Ignored
+ }
+
+ @Override
+ public void setTimeout(int timeout) {
+ // Ignored
+ }
+
+ @Override
+ public void setUseLoginShell(boolean useLogingShell) {
+ // Ignored
+ }
+
+ @Override
+ public void setUsePassword(boolean usePassword) {
+ // Ignored
+ }
+
+ @Override
+ public void setUsername(String username) {
+ // Ignored
+ }
+}