*/
public class ImportQueryAction extends Action implements IViewActionDelegate {
SQLQueryView view;
- FileDialog dialog;
+ FileDialog dialog;
+
+ public ImportQueryAction() {
+ setText(Messages.getString("sqlqueryview.importQuery"));
+ setImageDescriptor(QuantumPlugin.getImageDescriptor("import.gif"));
+ 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$
-
}
/**