1) Fixed issue #852: Correct matching of closing brace with the according opening...
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / InterpreterRunner.java
index 6aa5738..a333027 100644 (file)
@@ -2,10 +2,10 @@ package net.sourceforge.phpdt.internal.launching;
 
 import java.io.File;
 import java.io.IOException;
-import java.util.Iterator;
+//import java.util.Iterator;
 import java.util.Map;
 
-import net.sourceforge.phpdt.internal.core.JavaProject;
+//import net.sourceforge.phpdt.internal.core.JavaProject;
 
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.runtime.IPath;
@@ -61,7 +61,7 @@ public class InterpreterRunner {
 
        protected String renderCommandLine(
                        InterpreterRunnerConfiguration configuration) {
-               PHPInterpreter interpreter = configuration.getInterpreter();
+               //PHPInterpreter interpreter = configuration.getInterpreter();
 
                StringBuffer buffer = new StringBuffer();
                buffer.append(this.getDebugCommandLineArgument());
@@ -108,23 +108,23 @@ public class InterpreterRunner {
 
        }
 
-       protected String renderLoadPath(InterpreterRunnerConfiguration configuration) {
-               StringBuffer loadPath = new StringBuffer();
-
-               JavaProject project = configuration.getProject();
-               addToLoadPath(loadPath, project.getProject());
-
-               Iterator referencedProjects = project.getReferencedProjects()
-                               .iterator();
-               while (referencedProjects.hasNext())
-                       addToLoadPath(loadPath, (IProject) referencedProjects.next());
-
-               return loadPath.toString();
-       }
+//     protected String renderLoadPath(InterpreterRunnerConfiguration configuration) {
+//             StringBuffer loadPath = new StringBuffer();
+//
+//             JavaProject project = configuration.getProject();
+//             addToLoadPath(loadPath, project.getProject());
+//
+//             Iterator referencedProjects = project.getReferencedProjects()
+//                             .iterator();
+//             while (referencedProjects.hasNext())
+//                     addToLoadPath(loadPath, (IProject) referencedProjects.next());
+//
+//             return loadPath.toString();
+//     }
 
        protected void addToLoadPath(StringBuffer loadPath, IProject project) {
                loadPath.append(" -I "
-                               + osDependentPath(project.getLocation().toOSString()));
+                               + osDependentPath(project.getFullPath().toOSString()));
        }
 
        protected String osDependentPath(String aPath) {