|
Re: DND + Table Selection: ordering of Events [message #489703 is a reply to message #489606] |
Mon, 05 October 2009 15:17 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi,
Does data-view-class mean you're using a TableViewer? If so then there may
be a listener at the jface level that you should be using instead. Someone
on the eclipse.platform.jface newsgroup could tell you if this is the case.
(Or, does jface provide a way to map from an swt TableItem to an item in
your model?)
If this doesn't describe your case then you'll have to give some more info
(as always, a runnable snippet would be ideal).
Grant
"Fabian Zeindl" <fabian@xover.htu.tuwien.ac.at> wrote in message
news:hacgqt$17c$1@build.eclipse.org...
> Hi,
>
> i have a DragSource on a table, which is populated by a data-view-class.
> My problem is that I can't access the currently dragged item in
dragSetData, cause on Windows the SelectionListeners on the table are always
fired after the drag is finished.
>
> It doesn't matter whether I add the DragSource before oder after the
SelectionListener.
>
> I haven't tried to access the Table's selection directly in SetData, since
I have no use for TableItem, but I need the associated data, which is
provided by my dataview-class.
>
> Any Ideas?
> fabian zeindl
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03483 seconds