introduced IConstant.DEBUG flag
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / actions / NewBookmarkAction.java
index 3f4d936..7eb7294 100644 (file)
@@ -1,5 +1,8 @@
 package net.sourceforge.phpdt.sql.actions;
 
+import net.sourceforge.phpdt.sql.IConstants;
+import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
+
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.viewers.ISelection;
@@ -7,8 +10,6 @@ import org.eclipse.jface.wizard.WizardDialog;
 import org.eclipse.ui.IViewActionDelegate;
 import org.eclipse.ui.IViewPart;
 
-import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
-
 /**
  * @author root
  *
@@ -17,7 +18,7 @@ import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
  * To enable and disable the creation of type comments go to
  * Window>Preferences>Java>Code Generation.
  */
-public class NewBookmarkAction extends Action implements IViewActionDelegate {
+public class NewBookmarkAction extends Action implements IViewActionDelegate, IConstants {
    IViewPart view;
        /**
         * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
@@ -34,7 +35,9 @@ public class NewBookmarkAction extends Action implements IViewActionDelegate {
                run();
        }
        public void run() {
+    if (DEBUG) {
                System.out.println("Wizard..");
+    }
                BookmarkWizard wizard = new BookmarkWizard();
                
                wizard.init();