introduced IConstant.DEBUG flag
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / PHPEclipseSQLPlugin.java
index 5b66482..c5bd07a 100644 (file)
@@ -26,7 +26,8 @@ import net.sourceforge.phpdt.sql.view.bookmark.BookmarkContentProvider;
 /**
  * @author 
  */
-public class PHPEclipseSQLPlugin extends AbstractUIPlugin {
+public class PHPEclipseSQLPlugin extends AbstractUIPlugin implements IConstants {
+  
   private static final String BUNDLE_NAME =
     "net.sourceforge.phpdt.sql.PHPEclipseSQLResources";
   private static final ResourceBundle RESOURCE_BUNDLE =
@@ -114,7 +115,7 @@ public class PHPEclipseSQLPlugin extends AbstractUIPlugin {
   }
 
 }
-class QuantumSaveParticipant implements ISaveParticipant {
+class QuantumSaveParticipant implements ISaveParticipant, IConstants {
   /**
    * @see org.eclipse.core.resources.ISaveParticipant#doneSaving(ISaveContext)
    */
@@ -154,7 +155,9 @@ class QuantumSaveParticipant implements ISaveParticipant {
           context.map(new Path("save"), new Path(saveFileName));
           context.needSaveNumber();
         } else {
+          if (DEBUG) {
           System.out.println("Not saving unchanged bookmarks");
+          }
         }
         break;
       case ISaveContext.PROJECT_SAVE :