improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / builder / AbstractImageBuilder.java
index 22e9a7e..32a8b41 100644 (file)
@@ -360,8 +360,8 @@ protected void storeProblemsFor(SourceFile sourceFile, IProblem[] problems) thro
 
                // compute a user-friendly location
                IJavaElement element = JavaCore.create(resource);
-               if (element instanceof org.eclipse.jdt.core.ICompilationUnit) { // try to find a finer grain element
-                       org.eclipse.jdt.core.ICompilationUnit unit = (org.eclipse.jdt.core.ICompilationUnit) element;
+               if (element instanceof net.sourceforge.phpdt.core.ICompilationUnit) { // try to find a finer grain element
+                       net.sourceforge.phpdt.core.ICompilationUnit unit = (net.sourceforge.phpdt.core.ICompilationUnit) element;
                        IJavaElement fragment = unit.getElementAt(problem.getSourceStart());
                        if (fragment != null) element = fragment;
                }