Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334015

Summary: Drag/drop of table from Data Source Explorer to SQL Query Builder does not work
Product: [Tools] Data Tools Reporter: Brian Payton <bpayton>
Component: SQL Query BuilderAssignee: dtp.sqldevtools-inbox <dtp.sqldevtools-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: swati.udas
Version: 1.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Payton CLA 2011-01-11 13:36:54 EST
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)
Comment 1 Brian Payton CLA 2011-01-11 13:38:27 EST
This problem was reported by Swati Sapar (swati.udas at gmail) in the DTP newsgroup.
Comment 2 Swati Sapar CLA 2011-01-11 13:58:07 EST
After some more testing I found that the drag and drop works for MySQL database.
It does not work for Derby database.
Comment 3 Brian Payton CLA 2011-01-11 14:21:28 EST
That's odd, it is usually the other way around :-)
It doesn't work for DB2 either, which is what I tested.