Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DragSourceListener.dragSetData() is never called
DragSourceListener.dragSetData() is never called [message #648695] Thu, 13 January 2011 22:44 Go to next message
Ani  is currently offline Ani
Messages: 37
Registered: November 2010
Member
Hi,

I've dragsource from a tableviewer and droptarget on a composite of multipageeditor part.
In this case, I'm using only text transfers whose values i'm trying to
set to event.data in dragsourcelistener.dragsetdata()
Based on this text value i'm executing a command.

But while debugging i found that DragSourceListener.dragSetData() is never called and hence the event data is not set. So my commands are not getting executed.
I tried setting the data in dragStart() method also, but it didn't
help.

Does anyone know why this happens and how to get it done?

Regards.
Re: DragSourceListener.dragSetData() is never called [message #648700 is a reply to message #648695] Fri, 14 January 2011 00:56 Go to previous message
Ani  is currently offline Ani
Messages: 37
Registered: November 2010
Member
Hi,

As per my understanding now, the dragSetData() is called only when the droptarget requests for data.
So I created a default command which does nothing except triggering the dragsetdata() to set my event data and then accordingly i excecute required commands.
It worked Smile

Thanks!
Previous Topic:Render Problem of AWT loaded TTF file on MacOS
Next Topic:Render problems for custom context menu in OpenGL / SWT
Goto Forum:
  


Current Time: Tue Jul 22 05:25:57 EDT 2014

Powered by FUDForum. Page generated in 0.02544 seconds