| Copy/Paste tutorial [message #180955] | 
Fri, 04 April 2008 10:18   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
Can somebody explain how to implement copy/paste functionality with GMF  
generated diagram? 
 
I tried this tutorial : http://serdom.szn.pl/ser/?p=6, but it fails.  
When I paste a top node, a figure is displayed with a description of the  
copied object between []. Do I have to add some properties to my Ecore  
model ? 
 
It seems that Logic example implements copy/paste, but domain model and  
diagram are same file. 
 
If somebody can describe step by step how to do this, it would be very  
helpful for me. 
 
Thank you very much ! 
 
Best regards, 
 
Philippe
 |  
 |  
  | 
 | 
 | 
 | 
| Re: Copy/Paste tutorial [message #181196 is a reply to message #181156] | 
Mon, 07 April 2008 10:21   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: taggartboy.hotmail.com 
 
Hi, 
 
I implemented the steps in the previous post but still have a few issues  
with the copy/paste. 
 
1. The copy/paste does not work in an RCP application 
 
2. in a non-RCP application the copy/pase functionallity allows the  
diagram to be broken and exhibits strange behaviour: if i copy an element  
that can exist only as a child of another element, i can paste it outside  
the parent.  This copy is non-unique and appears to be another  
representation of the element you copied (any properties changed on either  
propagate on both) but should NOT be allowed to be created in the first  
place. 
 
If anyone can please provide help on either of the above it would be  
greatly appreciated, 
 
Thanks 
peter.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.85329 seconds