Fixed: 1776098 - Cannot open source file from Breakpoints View
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / ViewTableDetailsAction.java
index 19d803c..80db996 100644 (file)
@@ -12,6 +12,7 @@ import com.quantum.sql.MultiSQLServer;
 import com.quantum.sql.SQLResultSetCollection;
 import com.quantum.sql.SQLResultSetResults;
 import com.quantum.ui.dialog.ExceptionDisplayDialog;
+import com.quantum.ui.dialog.SQLExceptionDialog;
 import com.quantum.util.connection.ConnectionUtil;
 import com.quantum.view.bookmark.EntityNode;
 
@@ -43,7 +44,8 @@ public class ViewTableDetailsAction extends SelectionListenerAction  {
                        SQLResultSetCollection.getInstance().addSQLResultSet(results);
                    }
                } catch (SQLException e) {
-                       ExceptionDisplayDialog.openError(getShell(), null, null, e);
+                       SQLExceptionDialog.openException(getShell(), 
+                                       entity == null ? null : entity.getBookmark(), e);
                }
         }
        }