diff options
author | eutarass | 2009-04-03 19:29:58 +0000 |
---|---|---|
committer | eutarass | 2009-04-03 19:29:58 +0000 |
commit | d35f3a9dd160c0526611b70696f28b77b77ac4d8 (patch) | |
tree | 803e86dc76fc863a85507618ed3583d744ea7228 | |
parent | 4d26e11b99d037965dc263e6e0ce3018b42a4c86 (diff) | |
download | org.eclipse.tcf-d35f3a9dd160c0526611b70696f28b77b77ac4d8.tar.gz org.eclipse.tcf-d35f3a9dd160c0526611b70696f28b77b77ac4d8.tar.xz org.eclipse.tcf-d35f3a9dd160c0526611b70696f28b77b77ac4d8.zip |
Bug 269682: [tcf] RSE cannot connect to non-standard TCF port
-rw-r--r-- | plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/TCFConnectorService.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/TCFConnectorService.java b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/TCFConnectorService.java index 9e9f7ea33..7b9251189 100644 --- a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/TCFConnectorService.java +++ b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/TCFConnectorService.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2009 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * Wind River Systems - initial API and implementation + * Martin Oberhuber (Wind River) - [269682] Get port from RSE Property *******************************************************************************/ package org.eclipse.tm.internal.tcf.rse; @@ -100,8 +101,12 @@ public class TCFConnectorService extends BasicConnectorService { } if (channel == null) { final String host = getHostName().toLowerCase(); - // TODO: final int port = getPort(); - final int port = TCFConnectorServiceManager.TCF_PORT; + int tmpPort = getConnectPort(); + if (tmpPort <= 0) { + //Default fallback + tmpPort = TCFConnectorServiceManager.TCF_PORT; + } + final int port = tmpPort; IPeer peer = null; String ports = Integer.toString(port); ILocator locator = Protocol.getLocator(); |