misc parser changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / resourcesview / ResourceAdapterFactory.java
index 0e403f7..e288032 100644 (file)
@@ -1,5 +1,6 @@
 package net.sourceforge.phpeclipse.resourcesview;
 
+import net.sourceforge.phpdt.internal.core.JavaProject;
 import net.sourceforge.phpeclipse.PHPCore;
 
 import org.eclipse.core.resources.IFile;
@@ -8,7 +9,7 @@ import org.eclipse.core.runtime.IAdapterFactory;
 
 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();
@@ -18,7 +19,7 @@ public class ResourceAdapterFactory implements IAdapterFactory {
                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)) {