Parser detects wrong include files now
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / builder / PHPBuilder.java
index 6cd1981..81fd788 100644 (file)
@@ -87,6 +87,22 @@ public class PHPBuilder extends IncrementalProjectBuilder {
   public static void finishedBuilding(IResourceChangeEvent event) {
     BuildNotifier.resetProblemCounters();
   }
+  /**
+   * Hook allowing to initialize some static state before a complete build iteration.
+   * This hook is invoked during PRE_AUTO_BUILD notification
+   */
+  public static void buildStarting() {
+       // do nothing
+       // TODO (philippe) is it still needed?
+  }
+
+  /**
+   * Hook allowing to reset some static state after a complete build iteration.
+   * This hook is invoked during POST_AUTO_BUILD notification
+   */
+  public static void buildFinished() {
+       BuildNotifier.resetProblemCounters();
+  }
   public static void removeProblemsFor(IResource resource) {
     try {
       if (resource != null && resource.exists())
@@ -612,7 +628,7 @@ public class PHPBuilder extends IncrementalProjectBuilder {
     //      IMarker marker =
     // currentProject.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
     //      marker.setAttribute(IMarker.MESSAGE,
-    // Util.bind("build.abortDueToClasspathProblems")); //$NON-NLS-1$
+    // ProjectPrefUtil.bind("build.abortDueToClasspathProblems")); //$NON-NLS-1$
     //      marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);
     //      return false;
     //    }