import com.quantum.model.ConnectionException;
import com.quantum.model.Table;
import com.quantum.ui.dialog.ExceptionDisplayDialog;
+import com.quantum.ui.dialog.SQLExceptionDialog;
import com.quantum.view.bookmark.EntityNode;
import org.eclipse.jface.dialogs.MessageDialog;
}
public void run() {
+ Table table = getTable();
try {
- Table table = getTable();
if (table != null) {
boolean flag = MessageDialog.openConfirm(
view.getSite().getShell(),
Messages.getString(DeleteAllRowsAction.class.getName() + ".confirmTitle"),
Messages.getString(DeleteAllRowsAction.class.getName() + ".confirmText",
- new Object[] { table.getCondQualifiedName() }));
+ new Object[] { table.getQualifiedName() }));
if (flag) {
table.deleteAllRows();
}
}
} catch (SQLException e) {
- ExceptionDisplayDialog.openError(getShell(),
- Messages.getString("ExecuteAgainstAction.title"),
- Messages.getString("ExecuteAgainstAction.ConnectionException"), e);
+ SQLExceptionDialog.openException(getShell(),
+ table == null ? null : table.getBookmark(), e);
} catch (ConnectionException e) {
ExceptionDisplayDialog.openError(getShell(),
Messages.getString("ExecuteAgainstAction.title"),