Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Copy paste problem
Copy paste problem [message #202987] Fri, 22 August 2008 05:07 Go to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 24
Registered: July 2009
Junior Member
Hi ,

I am using latest version of gmf i.e 2.1.0. I am using separate file for
model and diagram. When I copy a element on editor and paste it, at this
time I can see the element on the editor but value is not getting saved in
model. When I close the editor and reopen it ,my copied element is getting
lost.

Could some one please help on this.

Regards,
Vikas
Re: Copy paste problem [message #203043 is a reply to message #202987] Fri, 22 August 2008 09:09 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Vikas,

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=129533.
Looks like this is a known problem. To work around it you have to use custom
resoruce factory for the domain model creating XMLResourceImpl subclasses
with overriden "useUUIDs" method. This method have to return "true" to switch
on GUIDS support.

-----------------
Alex Shatalin
Re: Copy paste problem [message #203069 is a reply to message #203043] Fri, 22 August 2008 10:25 Go to previous messageGo to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 24
Registered: July 2009
Junior Member
Thanks Alex for the information.

Could you please tell me how exactly I can use custom resource factory
for the domain model creation.

Thanks once again.

Best Regards,
Vikas
Re: Copy paste problem [message #203126 is a reply to message #203069] Fri, 22 August 2008 13:36 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Vikas,

See org.eclipse.emf.ecore.extension_parser extension point.

-----------------
Alex Shatalin
Re: Copy paste problem [message #203376 is a reply to message #203126] Tue, 26 August 2008 11:06 Go to previous message
Eclipse UserFriend
Originally posted by: gtyagi.csc.com

Hi,
I am facing the same problem. I enabled the uuid's for elements in
semantic model but when paste happens, the element does not go into the
model.

One reason, why the element does not go into the model could be that the
original element and new element have same point ti the same location in
memory.

Regards
Previous Topic:Diagram label for association ends - modify domain model or diagram code?
Next Topic:Creating a text attribute in GMF
Goto Forum:
  


Current Time: Sat Apr 27 01:30:23 GMT 2024

Powered by FUDForum. Page generated in 0.03111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top