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;
*/
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)
*/
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$
-
}
/**