no message
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / InterpreterRunnerConfiguration.java
index 55c99f3..8cec3f2 100644 (file)
@@ -84,4 +84,31 @@ public class InterpreterRunnerConfiguration {
 
                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 "";
+       }
+
 }