added button to start tests.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / resourcesview / ResourceAdapterFactory.java
index e288032..4a5799c 100644 (file)
@@ -1,7 +1,7 @@
 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;
@@ -17,17 +17,17 @@ public class ResourceAdapterFactory implements IAdapterFactory {
 
        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;