Initial import of the phpmanual.htmlparser plugin
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / ViewHelper.java
index 252c0a8..7733294 100644 (file)
@@ -15,6 +15,7 @@ import com.quantum.QuantumPlugin;
 import com.quantum.model.Bookmark;
 import com.quantum.sql.MultiSQLServer;
 import com.quantum.sql.SQLResults;
+import com.quantum.ui.dialog.SQLExceptionDialog;
 
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.swt.SWT;
@@ -41,7 +42,7 @@ public class ViewHelper {
                } catch (SQLException e) {
                        LogProxy log = LogProxy.getInstance();
                        log.addText(LogProxy.ERROR, e.getLocalizedMessage(), e); //$NON-NLS-1$ //$NON-NLS-2$
-                       MessageDialog.openConfirm(shell, "Database returned error", e.getLocalizedMessage());  //$NON-NLS-1$                                                    
+            SQLExceptionDialog.openException(shell, bookmark, e);
                        return null;
                }
        }