import net.sourceforge.phpdt.internal.launching.PHPLaunchConfigurationAttribute;
import net.sourceforge.phpdt.internal.launching.PHPRuntime;
import net.sourceforge.phpdt.internal.ui.PHPUiImages;
+import net.sourceforge.phpdt.core.JavaCore;
import net.sourceforge.phpeclipse.LoadPathEntry;
-import net.sourceforge.phpeclipse.PHPCore;
import net.sourceforge.phpeclipse.resourcesview.PHPProject;
+import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jface.viewers.TableLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
import org.eclipse.swt.SWT;
+import org.eclipse.core.resources.IProject;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
if (useDefaultLoadPath) {
String projectName = configuration.getAttribute(PHPLaunchConfigurationAttribute.PROJECT_NAME, "");
if (projectName != "") {
- PHPProject project = PHPCore.getPHPProject(projectName);
- if (project != null) {
- List loadPathEntries = project.getLoadPathEntries();
+ IProject aProject = PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName);
+ if ((aProject != null) && JavaCore.isPHPProject(aProject)) {
+ PHPProject thePHPProject = new PHPProject();
+ thePHPProject.setProject(aProject);
+ List loadPathEntries = thePHPProject.getLoadPathEntries();
loadPathListViewer.setInput(loadPathEntries);
}
}