| [news.eclipse.modeling.gmf] Re: Copy & Paste, CopyPaste, Duplication |
Thanks Alex, see below...
You're right, of course!This means UUID support is switched on for *.taipan_diagram resoruces (diagram files). To make cut/copy/paste functionality working you have to switch on this support for *.taipan resources too.As far as I can see, UUIDs should be enabled in ..taipan.gmf.editor.rcp/plugin.xml, but that does not seem to have an effect: <extension point="org.eclipse.emf.ecore.extension_parser"> <?gmfgen generated="true"?> <parser type="taipan_diagram" class="org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory"> </parser> </extension>
Can you reproduce this? Simple add UUID-support to the TaiPan RCP example and run, then copy a node.
Yes, duplication seems to be the same Ctrl+DnD. I was not even aware of that function. This could be sufficient for some requirements, but not for all...Is it something like "edit/duplicate" action from the popup menu?Another strange thing is, that it works as expected when I drag/drop the node pressing Ctrl. A deep copy of the node is created.
If so, is there anything I can do?
Regards, Peter