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;
}
- 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 "
import org.eclipse.ui.part.FileEditorInput;
public class PHPSourceLocator implements IPersistableSourceLocator, ISourcePresentation {
- private String absoluteWorkingDirectory;
+ //private String absoluteWorkingDirectory;
private Map pathMap = null;
private boolean remoteDebug;
private IPath remoteSourcePath;
}
- public String getAbsoluteWorkingDirectory() {
- return absoluteWorkingDirectory;
- }
+// public String getAbsoluteWorkingDirectory() {
+// return absoluteWorkingDirectory;
+// }
/**
* @see org.eclipse.debug.core.model.IPersistableSourceLocator#getMemento()
* @see org.eclipse.debug.core.model.IPersistableSourceLocator#initializeDefaults(ILaunchConfiguration)
*/
public void initializeDefaults (ILaunchConfiguration configuration) throws CoreException {
- this.absoluteWorkingDirectory = configuration.getAttribute (PHPLaunchConfigurationAttribute.WORKING_DIRECTORY, "");
+ //this.absoluteWorkingDirectory = configuration.getAttribute (PHPLaunchConfigurationAttribute.WORKING_DIRECTORY, "");
this.remoteDebug = configuration.getAttribute (PHPLaunchConfigurationAttribute.REMOTE_DEBUG,false);
this.pathMap = configuration.getAttribute (PHPLaunchConfigurationAttribute.FILE_MAP, (Map)null);
this.projectName = configuration.getAttribute (PHPLaunchConfigurationAttribute.PROJECT_NAME, "");