Changed the perspective label from 'PHP' to 'PHP Web Development'
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / InterpreterRunnerConfiguration.java
index d33e69e..cd25d13 100644 (file)
@@ -103,6 +103,33 @@ public class InterpreterRunnerConfiguration {
                return false;
        }
        
+       public boolean usePathTranslation() {
+               try {
+                       return configuration.getAttribute(PHPLaunchConfigurationAttribute.REMOTE_DEBUG_TRANSLATE, false);
+               } catch(CoreException e) {
+                       PHPLaunchingPlugin.log(e);
+               }
+               return false;
+       }
+       
+       public Map getPathMap() {
+               try {
+                       return configuration.getAttribute(PHPLaunchConfigurationAttribute.FILE_MAP, (Map) null);
+               } catch(CoreException e) {
+               PHPLaunchingPlugin.log(e);
+               }
+               return (Map) null;
+       }
+       
+       public boolean useDBGSessionInBrowser() {
+               try {
+                       return configuration.getAttribute(PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_BROWSER, true);
+               } catch(CoreException e) {
+                       PHPLaunchingPlugin.log(e);
+               }
+               return false;
+       }
+       
        public void setEnvironment(String[] envp)
        {
                if (envp== null)
@@ -147,7 +174,7 @@ public class InterpreterRunnerConfiguration {
        public String getRemoteSourcePath() {
                
                IProject project = getProject().getProject();
-               if (useRemoteDebugger())
+               if (!useRemoteDebugger())
                        return project.getLocation().toOSString();
                else
                {