DnD - several transfer classes? [message #448614] |
Wed, 12 January 2005 08:42 |
Eclipse User |
|
|
|
Originally posted by: tom_edwards.hotmail.com
I already posted this question in the tool builders forum but now I
realise that this newsgroup might be more appropriate.
I have a question concerning Drag and Drop with jFace viewers. I have a
view with an jface tree viewer displaying DBCollection and DBObject
objects (DBCollection is a sub class of DBObject). Now I would like to
drag these object to table viewers located in other views. Some table
viewers only accept DBCollections whereas others only accept DBObjects
which are not DBCollections.
What I did is so far: I wrote my own transfer classes for DBObject and one
for DBCollection, but what happens is that always the DBObject transfer
class is used (probably since DBCollection is a sub class of DBObject). So
how can I manage to choose what transfer class should be used? Or is there
another solution to find out if the user is dragging an object of type
DBObject or DBCollection? Thanks for your help. In the tutorials I found
they always drag only objects of a single type.
Tom
|
|
|
|
Powered by
FUDForum. Page generated in 0.02715 seconds