X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/DeleteAllRowsAction.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/DeleteAllRowsAction.java index 63e5979..439f8ad 100644 --- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/DeleteAllRowsAction.java +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/DeleteAllRowsAction.java @@ -6,6 +6,7 @@ import com.quantum.Messages; 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; @@ -30,8 +31,8 @@ public class DeleteAllRowsAction extends SelectionListenerAction { } public void run() { + Table table = getTable(); try { - Table table = getTable(); if (table != null) { boolean flag = MessageDialog.openConfirm( view.getSite().getShell(), @@ -43,9 +44,8 @@ public class DeleteAllRowsAction extends SelectionListenerAction { } } } 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"),