X-Git-Url: http://git.phpeclipse.com

diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java
index aab3b86..8d45c41 100644
--- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java
+++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java
@@ -2,7 +2,7 @@ package net.sourceforge.phpdt.internal.launching;
 
 import java.io.File;
 
-import net.sourceforge.phpeclipse.resourcesview.PHPProject;
+import net.sourceforge.phpdt.internal.core.JavaProject;
 
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.runtime.CoreException;
@@ -32,9 +32,9 @@ public class InterpreterRunnerConfiguration {
 		} catch(CoreException e) {}
 		
 		return fileName.replace('\\', '/');
-	}
+	} 
 	
-	public PHPProject getProject() {
+	public JavaProject getProject() {
 		String projectName = "";
 		
 		try {
@@ -45,7 +45,7 @@ public class InterpreterRunnerConfiguration {
 
 		IProject project = PHPLaunchingPlugin.getWorkspace().getRoot().getProject(projectName);
 
-		PHPProject phpProject = new PHPProject();
+		JavaProject phpProject = new JavaProject();
 		phpProject.setProject(project);
 		return phpProject;
 	}
@@ -81,7 +81,34 @@ public class InterpreterRunnerConfiguration {
 		try {
 			selectedInterpreter = configuration.getAttribute(PHPLaunchConfigurationAttribute.SELECTED_INTERPRETER, "");
 		} catch(CoreException e) {}
-		
+
 		return PHPRuntime.getDefault().getInterpreter(selectedInterpreter);
 	}
+	
+	public boolean useRemoteDebugger() {
+		try {
+			return configuration.getAttribute(PHPLaunchConfigurationAttribute.REMOTE_DEBUG, false);
+		} catch(CoreException e) {
+			PHPLaunchingPlugin.log(e);
+		}
+		return false;
+	}
+	
+	public String getRemoteSourcePath() {
+		
+		IProject project = getProject().getProject();
+		if (useRemoteDebugger())
+			return project.getLocation().toOSString();
+		else
+		{		
+			try {
+				return configuration.getAttribute(PHPLaunchConfigurationAttribute.REMOTE_PATH, "");
+			} catch(CoreException e) {
+				PHPLaunchingPlugin.log(e);
+			}
+		}	
+
+		return "";
+	}
+
 }