1) Added handling of conditional breakpoint to addBreakoint method.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / ImportQueryAction.java
index 6d9654b..22dbe66 100644 (file)
@@ -5,6 +5,7 @@ import java.io.File;
 import java.io.FileReader;
 import java.io.IOException;
 
+import com.quantum.ImageStore;
 import com.quantum.Messages;
 import com.quantum.QuantumPlugin;
 import com.quantum.view.LogProxy;
@@ -25,7 +26,14 @@ import org.eclipse.ui.IViewPart;
  */
 public class ImportQueryAction extends Action implements IViewActionDelegate {
        SQLQueryView view;
-               FileDialog dialog;
+       FileDialog dialog;
+       
+       public ImportQueryAction() {
+               setText(Messages.getString("sqlqueryview.importQuery"));
+               setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.IMPORT));
+               setToolTipText(Messages.getString("sqlqueryview.importQuery"));
+       }
+       
        /**
         * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
         */
@@ -35,7 +43,6 @@ public class ImportQueryAction extends Action implements IViewActionDelegate {
                dialog.setFilterExtensions(new String[]{"*.sql", "*.ddl", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                dialog.setFilterNames(new String[]{Messages.getString("filedialog.sqlFiles"), //$NON-NLS-1$
                        Messages.getString("filedialog.ddlFiles"), Messages.getString("filedialog.allfiles")}); //$NON-NLS-1$ //$NON-NLS-2$
-               
        }
 
        /**