changes for new Action
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / resourcesview / ResourceAdapterFactory.java
index 1cc64d2..e288032 100644 (file)
@@ -1,17 +1,15 @@
 package net.sourceforge.phpeclipse.resourcesview;
 
+import net.sourceforge.phpdt.internal.core.JavaProject;
+import net.sourceforge.phpeclipse.PHPCore;
+
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.runtime.IAdapterFactory;
 
-import net.sourceforge.phpeclipse.PHPCore;
-import net.sourceforge.phpeclipse.resourcesview.PHPElement;
-import net.sourceforge.phpeclipse.resourcesview.PHPFile;
-import net.sourceforge.phpeclipse.resourcesview.PHPProject;
-
 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();
@@ -21,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)) {