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] Fri, 14 January 2011 03: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 05: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: Wed Sep 17 21:55:13 GMT 2014

Powered by FUDForum. Page generated in 0.10641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software