Hi there,
At the moment I'm making an application where I drag an item in a List to a Canvas (all in SWT). However, I don't wish to use TextTransfer or ByteArrayTransfer for the drag and drop data transfer. I want to transfer a class defined by me (lets just call it myCustomObj). I've tried subclassing Transfer but I don't have a clue what to put inside Transfer's methods, particularly isSupportedType() and nativeToJava(). Can anyone help me out (perhaps there's a better way than subclassing Transfer)?
PS: I found an article that kind of looks at what I'm asking here, but that example subclasses ByteArrayTransfer, which I don't think is what I need. I want to transfer an object, not bytes.