|Copy & paste non-EMF business objects [message #762092]
||Wed, 07 December 2011 14:31
Registered: November 2011
I am trying to implement copy & paste for my non-EMF model objects. From the Graphiti API it looks like it would be possible, since putToClipboard() and getFromClipboard() methods take Object. But when looking at the source code, internally EObjects are expected. So I wonder if copy & paste for non-EMF objects are planned (or if there is some workaround)?
In the meantime, I tried to wrap the IndependenceSolver key for my business object in an attribute in a dynamically created EObject and send that to putToClipboard(), but it turned out that I have to have a Resource associated with those clipboard EObjects, and that this resource had to be associated with a Platform URI, so I needed to save a temporary file as soon as I did a copy operation (and saved in the actual project folder since it had to be a Platform URI). This temporary file is a quite messy solution, so I again wonder if there is some better way of achieving this?
Powered by FUDForum
. Page generated in 0.01703 seconds