i need to drag-and-drop data from a non emf tree to an emf tree. They are in different views.
The nodes of the non emf tree have another data structure than the emf tree.
I want to convert the data in the non emf tree while draging it, to an object which fits into the emf tree.
I need to wrap the object into an ItemWrapper, but i have no idea how to.
I tried so much things but cannot figure out how to continue.
Thank you
The question sounds too generic. Typically, "EMF tree" contains the contents of EMF Resource (a tree of EObjects). The drag from "non emf" to "emf" should add something to the EMF Model instance as a result.
So, first you need to implement the "transformation" from your "non emf" to "emf" object. And then you need to modify the content of your EMF model with org.eclipse.emf.edit.command.AddCommand as a result of "drop"
If you will use the proper org.eclipse.emf.common.command.CommandStack to execute your command(s) the EMF Edit UI should take care about the viewer update