[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] DND with two different costum classes

Hi everyone,
in my RCP app I want to implement a DND-mechanism in which i want to transfer objects of two different costum classes (Foo and Bar). I already implemented FooTransfer and BarTransfer which both extend ByteArrayTransfer. I also implemented a DropTargetAdapter (which is checking for the class via (Foo|Bar)Transfer.getInstance().isSupportedType(event.currentDataType) in drop()) and a DragSourceAdapter (which is checking via * instanceof (Foo|Bar)).
They seem to work fine.
But, anyway, the whole mechanism doesn't work.
It seems like there is FooTransfer called everytime even if I want to transfer a Bar.
My question: How do I "connect" the classes to the Transfer types?
(I already had a look at isSupportedType(TransferData) but I don't understand how to check the TransferData for a class.)
Or how does this work at all?
Thanks in advance.


Regards, Moritz.