Community
Participate
Working Groups
Drag/drop of table from Data Source Explorer to SQL Query Builder does not work. The following exception is thrown: !ENTRY org.eclipse.ui 4 0 2011-01-10 17:58:28.921 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException at org.eclipse.datatools.sqltools.sqlbuilder.views.RDBTableDropListener.drop(RDBTableDropListener.java:104) at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774) at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456) at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119) at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363) at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289) at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
This problem was reported by Swati Sapar (swati.udas at gmail) in the DTP newsgroup.
After some more testing I found that the drag and drop works for MySQL database. It does not work for Derby database.
That's odd, it is usually the other way around :-) It doesn't work for DB2 either, which is what I tested.