misc
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / DeltaProcessor.java
index c68939a..31261a9 100644 (file)
@@ -1812,7 +1812,7 @@ public class DeltaProcessor implements IResourceChangeListener {
                                IResource res = delta.getResource();
                                
                                // find out the element type
-                               RootInfo rootInfo = null;
+//                             RootInfo rootInfo = null;
                                int elementType;
                                IProject proj = (IProject)res;
                                boolean wasJavaProject = this.manager.getJavaModel().findJavaProject(proj) != null;
@@ -1820,12 +1820,12 @@ public class DeltaProcessor implements IResourceChangeListener {
                                if (!wasJavaProject && !isJavaProject) {
                                        elementType = NON_JAVA_RESOURCE;
                                } else {
-                                       rootInfo = this.enclosingRootInfo(res.getFullPath(), delta.getKind());
-                                       if (rootInfo != null && rootInfo.isRootOfProject(res.getFullPath())) {
-                                               elementType = IJavaElement.PACKAGE_FRAGMENT_ROOT;
-                                       } else {
+//                                     rootInfo = this.enclosingRootInfo(res.getFullPath(), delta.getKind());
+//                                     if (rootInfo != null && rootInfo.isRootOfProject(res.getFullPath())) {
+//                                             elementType = IJavaElement.PACKAGE_FRAGMENT_ROOT;
+//                                     } else {
                                                elementType = IJavaElement.JAVA_PROJECT; 
-                                       }
+//                                     }
                                }
                                
                                // traverse delta