summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Dushistova2012-03-22 13:44:51 (EDT)
committerMarc Khouzam2012-03-22 13:44:51 (EDT)
commit838d1e80e5c2721be9281199d1a905a1adfae7ed (patch)
treeffebb8625bbea849fd74831365072fcfd9ec1271
parent9e7c69f28952f708bfc1997c318043eee112a4c3 (diff)
downloadorg.eclipse.cdt-838d1e80e5c2721be9281199d1a905a1adfae7ed.zip
org.eclipse.cdt-838d1e80e5c2721be9281199d1a905a1adfae7ed.tar.gz
org.eclipse.cdt-838d1e80e5c2721be9281199d1a905a1adfae7ed.tar.bz2
Bug 375067: [remote] Automated remote launch does not support project-less debug
-rw-r--r--cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
index f3d7b58..aa911f3 100644
--- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
+++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
@@ -19,6 +19,7 @@
* Anna Dushistova (Mentor Graphics) - adapted from RemoteCMainTab
* Anna Dushistova (Mentor Graphics) - moved to org.eclipse.cdt.launch.remote.tabs
* Anna Dushistova (Mentor Graphics) - [318052] [remote launch] Properties are not saved/used
+ * Anna Dushistova (MontaVista) - [375067] [remote] Automated remote launch does not support project-less debug
*******************************************************************************/
package org.eclipse.cdt.launch.remote.tabs;
@@ -31,6 +32,7 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.jface.dialogs.Dialog;
@@ -540,8 +542,7 @@ public class RemoteCDSFMainTab extends CMainTab {
remoteProgText.setText(remoteWsRoot);
} else {
// try to use remote path
- IPath wsRoot = getCProject().getProject().getWorkspace()
- .getRoot().getLocation();
+ IPath wsRoot = Platform.getLocation();
IPath remotePath = makeRelativeToWSRootLocation(new Path(
remoteName), remoteWsRoot, wsRoot);
remoteProgText.setText(remotePath.toString());