package net.sourceforge.phpeclipse.resourcesview;
+import net.sourceforge.phpdt.internal.core.JavaProject;
import net.sourceforge.phpeclipse.PHPCore;
import org.eclipse.core.resources.IFile;
public class ResourceAdapterFactory implements IAdapterFactory {
- protected static Class[] ADAPTERS_I_CREATE = new Class[] { PHPElement.class, PHPFile.class, PHPProject.class };
+ protected static Class[] ADAPTERS_I_CREATE = new Class[] { PHPElement.class, PHPFile.class, JavaProject.class };
public ResourceAdapterFactory() {
super();
if (PHPFile.class.equals(adapterType))
return PHPCore.create((IFile) adaptableObject);
- if (PHPProject.class.equals(adapterType))
+ if (JavaProject.class.equals(adapterType))
return PHPCore.create((IProject) adaptableObject);
if (PHPElement.class.equals(adapterType)) {