Added "Task Tags" functionality (TODO,...)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / builder / BatchImageBuilder.java
index 579de3c..967d8c3 100644 (file)
@@ -12,9 +12,11 @@ package net.sourceforge.phpdt.internal.core.builder;
 
 import java.util.ArrayList;
 
+import net.sourceforge.phpdt.core.JavaCore;
 import net.sourceforge.phpdt.internal.core.JavaModelManager;
 import net.sourceforge.phpdt.internal.core.Util;
-import net.sourceforge.phpeclipse.PHPCore;
+import net.sourceforge.phpeclipse.PHPeclipsePlugin;
+import net.sourceforge.phpeclipse.builder.IdentifierIndexManager;
 
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
@@ -36,9 +38,9 @@ public void build() {
                System.out.println("FULL build"); //$NON-NLS-1$
 
        try {
-//             notifier.subTask(Util.bind("build.cleaningOutput")); //$NON-NLS-1$
-//             JavaModelManager.getJavaModelManager().deltaProcessor.addForRefresh(javaBuilder.javaProject);
-//             PHPBuilder.removeProblemsAndTasksFor(javaBuilder.currentProject);
+               notifier.subTask(Util.bind("build.cleaningOutput")); //$NON-NLS-1$
+               JavaModelManager.getJavaModelManager().deltaProcessor.addForRefresh(javaBuilder.javaProject);
+               PHPBuilder.removeProblemsAndTasksFor(javaBuilder.currentProject);
 //             cleanOutputFolders();
                notifier.updateProgressDelta(0.1f);
 
@@ -66,6 +68,7 @@ public void build() {
 }
 
 protected void addAllSourceFiles(final ArrayList sourceFiles) throws CoreException {
+    
        for (int i = 0, l = sourceLocations.length; i < l; i++) {
                final ClasspathMultiDirectory sourceLocation = sourceLocations[i];
                final char[][] exclusionPatterns = sourceLocation.exclusionPatterns;
@@ -99,8 +102,8 @@ protected void addAllSourceFiles(final ArrayList sourceFiles) throws CoreExcepti
 }
 
 protected void cleanOutputFolders() throws CoreException {
-       boolean deleteAll = PHPCore.CLEAN.equals(
-               javaBuilder.javaProject.getOption(PHPCore.CORE_JAVA_BUILD_CLEAN_OUTPUT_FOLDER, true));
+       boolean deleteAll = JavaCore.CLEAN.equals(
+               javaBuilder.javaProject.getOption(JavaCore.CORE_JAVA_BUILD_CLEAN_OUTPUT_FOLDER, true));
        if (deleteAll) {
                ArrayList visited = new ArrayList(sourceLocations.length);
                for (int i = 0, l = sourceLocations.length; i < l; i++) {