1

I want to use image drag and drop for our application. I have got one sample application from the http://www.vogella.de/articles/EclipseDragAndDrop/article.html. It is very useful in fact. But instead of TextTransfer what could I use for transfer type for images? I could not find out ImageTransfer as transfer type for image drag and drop. My requirement is that I need to drag one image from one view to the another view\editor. Is there any class for as ImageTransfer for image drag and drop? I could not find out.

BenMorel
  • 34,448
  • 50
  • 182
  • 322

1 Answers1

0

If you implement both editor and view, you don't have to use native transfer types like ImageTransfer unless you want to accept DnD from other applications. Use org.eclipse.jface.util.LocalSelectionTransfer instead since it allow easily pass a object(s) from one Eclipse part into another. In case you want to accept DnD from other applications/Desktop, FileTransfer would be the best choice.

Cheers, Max

Max
  • 2,917
  • 1
  • 16
  • 16