Improved rendering
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / StandardJavaElementContentProvider.java
index 21b7dc1..7f1d21b 100644 (file)
@@ -23,8 +23,8 @@ import net.sourceforge.phpdt.core.IPackageFragmentRoot;
 import net.sourceforge.phpdt.core.IParent;
 import net.sourceforge.phpdt.core.ISourceReference;
 import net.sourceforge.phpdt.core.JavaModelException;
+import net.sourceforge.phpdt.core.JavaCore;
 import net.sourceforge.phpdt.internal.corext.util.JavaModelUtil;
-import net.sourceforge.phpeclipse.PHPCore;
 
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IFolder;
@@ -318,7 +318,7 @@ public class StandardJavaElementContentProvider implements ITreeContentProvider,
                                // Included is a member of excluded, but since it is rendered as a source
                                // folder we have to exclude it as a normal child.
                                if (o instanceof IFolder) {
-                                       IJavaElement element= PHPCore.create((IFolder)o);
+                                       IJavaElement element= JavaCore.create((IFolder)o);
                                        if (element instanceof IPackageFragmentRoot && element.exists()) {
                                                continue;
                                        }
@@ -408,7 +408,7 @@ public class StandardJavaElementContentProvider implements ITreeContentProvider,
                // try to map resources to the containing package fragment
                if (element instanceof IResource) {
                        IResource parent= ((IResource)element).getParent();
-                       IJavaElement jParent= PHPCore.create(parent);
+                       IJavaElement jParent= JavaCore.create(parent);
                        // http://bugs.eclipse.org/bugs/show_bug.cgi?id=31374
                        if (jParent != null && jParent.exists()) 
                                return jParent;