package net.sourceforge.phpeclipse.preferences;
+import net.sourceforge.phpdt.internal.core.JavaProject;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.resourcesview.PHPProject;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
public class PHPProjectPropertyPage extends PropertyPage implements IWorkbenchPropertyPage {
protected PHPProjectLibraryPage projectsPage;
- protected PHPProject workingProject;
+ protected JavaProject workingProject;
public PHPProjectPropertyPage() {
}
return createProjectPageContents(parent);
}
- protected PHPProject getPHPProject() {
+ protected JavaProject getPHPProject() {
IAdaptable selectedElement = getElement();
if (selectedElement == null)
return null;
- if (selectedElement instanceof PHPProject)
- return (PHPProject) selectedElement;
+ if (selectedElement instanceof JavaProject)
+ return (JavaProject) selectedElement;
if (selectedElement instanceof IProject) {
IProject simpleProject = (IProject) selectedElement;
try {
if (simpleProject.hasNature(PHPeclipsePlugin.PHP_NATURE_ID)) {
- PHPProject phpProject = new PHPProject();
+ JavaProject phpProject = new JavaProject();
phpProject.setProject(simpleProject);
return phpProject;
}