|
|
|
|
Re: UUIDs Not Working [message #205335 is a reply to message #205256] |
Thu, 11 September 2008 12:17 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Gary,
Well, I'm not sure how copy and paste works in GMF but relying on UUIDs
always being present seems very limiting to me. Especially given that
UUID maintenance has about a 175 bytes per object in-memory overhead.
In any case, a copied object should not have the same ID as the old
one. The resource maintains the UUIDs and unless you've done something
to override .equals of your objects, now two different objects can ever
be assigned the same ID in the map maintained by the resource...
Gary wrote:
> (typing error for extention caused it not to work properly)it is now
> using the factory and the UUIDs work! However the reason for doing
> this was to get the copy and paste function working (I was hoping that
> generating a unique id for each element in my diagram would work)
> Thing is I think the copyed version keeps the same ID of the old one!
>
> This causes the copied(and pasted) node to vanish when the diagram is
> refreshed, this also means that the copied(and pasted) node is not
> stored in the model or diagram file! as if it was never copied
>
> Do you know of any solution to this?
>
> Thanks in advance,
> Gary
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03365 seconds