1) Reintroduced finishedBuilding
authorrobekras <robekras>
Mon, 2 Jan 2012 19:48:16 +0000 (19:48 +0000)
committerrobekras <robekras>
Mon, 2 Jan 2012 19:48:16 +0000 (19:48 +0000)
2) Fixed endless loop in parseIdentifiers

net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/PHPBuilder.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java

index a462141..b6eebad 100644 (file)
@@ -37,7 +37,7 @@ import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IMarker;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
-//import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeEvent;
 import org.eclipse.core.resources.IResourceDelta;
 import org.eclipse.core.resources.IResourceVisitor;
 import org.eclipse.core.resources.IWorkspaceRoot;
@@ -101,9 +101,9 @@ public class PHPBuilder extends IncrementalProjectBuilder {
                return new IMarker[0];
        }
 
-//     public static void finishedBuilding(IResourceChangeEvent event) {
-//             BuildNotifier.resetProblemCounters();
-//     }
+       public static void finishedBuilding(IResourceChangeEvent event) {
+               BuildNotifier.resetProblemCounters();
+       }
 
        /**
         * Hook allowing to initialize some static state before a complete build
index 5b3a50f..639f165 100644 (file)
@@ -385,7 +385,8 @@ public class IdentifierIndexManager {
                                                                                        skipComments();
                                                                                }
                                                                        }       
-                                                               } while (fToken != TokenNameRPAREN );
+                                                                       getNextToken ();
+                                                               } while ((fToken != TokenNameRPAREN) && (fToken != 0));
                                                        }
                                                        parseDeclarations(null, buf, true);
                                                }