package net.sourceforge.phpeclipse.resourcesview;
+import net.sourceforge.phpdt.core.JavaCore;
import net.sourceforge.phpdt.internal.core.JavaProject;
-import net.sourceforge.phpeclipse.PHPCore;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (PHPFile.class.equals(adapterType))
- return PHPCore.create((IFile) adaptableObject);
+ return JavaCore.create((IFile) adaptableObject);
if (JavaProject.class.equals(adapterType))
- return PHPCore.create((IProject) adaptableObject);
+ return JavaCore.create((IProject) adaptableObject);
if (PHPElement.class.equals(adapterType)) {
if (adaptableObject instanceof IFile)
- return PHPCore.create((IFile) adaptableObject);
+ return JavaCore.create((IFile) adaptableObject);
if (adaptableObject instanceof IProject)
- return PHPCore.create((IProject) adaptableObject);
+ return JavaCore.create((IProject) adaptableObject);
}
return null;