fixed: java.lang.IllegalArgumentException: Attempted to beginRule...
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / InterpreterRunner.java
index 967d643..cae1655 100644 (file)
@@ -4,14 +4,14 @@ import java.io.File;
 import java.io.IOException;
 import java.util.Iterator;
 
-import org.eclipse.core.boot.BootLoader;
+import net.sourceforge.phpdt.internal.core.JavaProject;
+
 import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.Platform;
 import org.eclipse.debug.core.DebugPlugin;
 import org.eclipse.debug.core.ILaunch;
 import org.eclipse.debug.core.model.IProcess;
 
-import net.sourceforge.phpeclipse.resourcesview.PHPProject;
-
 public class InterpreterRunner {
 
        public InterpreterRunner() {
@@ -30,6 +30,7 @@ public class InterpreterRunner {
 
                IProcess process = DebugPlugin.newProcess(launch, nativePHPProcess, renderLabel(configuration));
                process.setAttribute(PHPLaunchingPlugin.PLUGIN_ID + ".launcher.cmdline", commandLine);
+
                return process ;
        }
 
@@ -62,7 +63,7 @@ public class InterpreterRunner {
        protected String renderLoadPath(InterpreterRunnerConfiguration configuration) {
                StringBuffer loadPath = new StringBuffer();
 
-               PHPProject project = configuration.getProject();
+               JavaProject project = configuration.getProject();
                addToLoadPath(loadPath, project.getProject());
 
                Iterator referencedProjects = project.getReferencedProjects().iterator();
@@ -77,7 +78,7 @@ public class InterpreterRunner {
        }
 
        protected String osDependentPath(String aPath) {
-               if (BootLoader.getOS().equals(BootLoader.OS_WIN32))
+               if (Platform.getOS().equals(Platform.OS_WIN32))
                        aPath = "\"" + aPath + "\"";
 
                return aPath;
@@ -85,5 +86,5 @@ public class InterpreterRunner {
        
        protected String getDebugCommandLineArgument() {
                return "" ;     
-       }
+       }       
 }