Eclipse 3.x compatible;
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / JavaModelManager.java
index 0ab7de9..1838edf 100644 (file)
@@ -42,7 +42,7 @@ import net.sourceforge.phpdt.core.JavaModelException;
 import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil;
 import net.sourceforge.phpeclipse.PHPCore;
 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.builder.PHPBuilder;
+import net.sourceforge.phpdt.internal.core.builder.PHPBuilder;
 
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IFolder;
@@ -540,7 +540,7 @@ public class JavaModelManager implements ISaveParticipant {
                        this.project = project;
                }
        }
-       public static boolean VERBOSE = false;
+       public static boolean VERBOSE = true;
        public static boolean CP_RESOLVE_VERBOSE = false;
        public static boolean ZIP_ACCESS_VERBOSE = false;
        
@@ -1304,9 +1304,8 @@ public class JavaModelManager implements ISaveParticipant {
                                                throw new IOException(Util.bind("build.wrongFileFormat")); //$NON-NLS-1$
                                        if (in.readBoolean())
                                                return PHPBuilder.readState(project, in);
-//                             TODO khartlage temp-del
-//                                     if (JavaBuilder.DEBUG)
-//                                             System.out.println("Saved state thinks last build failed for " + project.getName()); //$NON-NLS-1$
+                                       if (PHPBuilder.DEBUG)
+                                               System.out.println("Saved state thinks last build failed for " + project.getName()); //$NON-NLS-1$
                                } finally {
                                        in.close();
                                }
@@ -1446,8 +1445,8 @@ public class JavaModelManager implements ISaveParticipant {
         * Saves the built state for the project.
         */
        private void saveBuiltState(PerProjectInfo info) throws CoreException {
-//             if (JavaBuilder.DEBUG)
-//                     System.out.println(Util.bind("build.saveStateProgress", info.project.getName())); //$NON-NLS-1$
+               if (PHPBuilder.DEBUG)
+                       System.out.println(Util.bind("build.saveStateProgress", info.project.getName())); //$NON-NLS-1$
                File file = getSerializationFile(info.project);
                if (file == null) return;
                long t = System.currentTimeMillis();
@@ -1476,10 +1475,10 @@ public class JavaModelManager implements ISaveParticipant {
                                new Status(IStatus.ERROR, PHPCore.PLUGIN_ID, Platform.PLUGIN_ERROR,
                                        Util.bind("build.cannotSaveState", info.project.getName()), e)); //$NON-NLS-1$
                }
-//             if (JavaBuilder.DEBUG) {
-//                     t = System.currentTimeMillis() - t;
-//                     System.out.println(Util.bind("build.saveStateComplete", String.valueOf(t))); //$NON-NLS-1$
-//             }
+               if (PHPBuilder.DEBUG) {
+                       t = System.currentTimeMillis() - t;
+                       System.out.println(Util.bind("build.saveStateComplete", String.valueOf(t))); //$NON-NLS-1$
+               }
        }
 
        /**