Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable UUIDs?
Disable UUIDs? [message #515495] Fri, 19 February 2010 01:39 Go to next message
Jesse Steinfort is currently offline Jesse SteinfortFriend
Messages: 7
Registered: October 2009
Junior Member
Hi Folks,

I've been poking around the forums for information because I've been using an EMF model in my application that, up until now, has not had UUIDs. In fact, I had set an attribute to be the id using the id notation.

Now that I am playing with using GMF to edit my model, I'm seeing UUIDs in models created with the generated diagram editor.

Is it possible to disable the use of UUIDs? I've read that they are necessary for copy and paste, but hypothetically, if I were to not care about that, could I somehow make my GMF editor use the old way?

If this is possible, if you could point a GMF newbie in the right direction as to how to accomplish this, I'd be very appreciative. Smile

Regards,
Jesse
Re: Disable UUIDs? [message #515500 is a reply to message #515495] Fri, 19 February 2010 02:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31476
Registered: July 2009
Senior Member
Jesse,

UUIDs are controlled by the resource implementation containing the
model. GMF resources use UUIDs but if you store your model in a resource
separate from the diagram itself then you'll have control over whether
your model's resource uses UUIDs or not. I'm not sure the notation
model will work without UUIDs, but your own model should.


Jesse Steinfort wrote:
> Hi Folks,
>
> I've been poking around the forums for information because I've been
> using an EMF model in my application that, up until now, has not had
> UUIDs. In fact, I had set an attribute to be the id using the id
> notation.
>
> Now that I am playing with using GMF to edit my model, I'm seeing
> UUIDs in models created with the generated diagram editor.
>
> Is it possible to disable the use of UUIDs? I've read that they are
> necessary for copy and paste, but hypothetically, if I were to not
> care about that, could I somehow make my GMF editor use the old way?
>
> If this is possible, if you could point a GMF newbie in the right
> direction as to how to accomplish this, I'd be very appreciative. :)
>
> Regards,
> Jesse


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable UUIDs? [message #515638 is a reply to message #515500] Fri, 19 February 2010 15:28 Go to previous messageGo to next message
Jesse Steinfort is currently offline Jesse SteinfortFriend
Messages: 7
Registered: October 2009
Junior Member
Thanks Ed. It seems nice from a user point of view to be able to put both models (diagram and semantic) in the same resource. I'll look around some more and see if I can change the resource for the diagram notation without breaking anything.

Regards,
Jesse
Re: Disable UUIDs? [message #515714 is a reply to message #515638] Fri, 19 February 2010 21:47 Go to previous message
Jesse Steinfort is currently offline Jesse SteinfortFriend
Messages: 7
Registered: October 2009
Junior Member
Oops. That didn't work out well. I subclassed and contributed my own GMFResource and GMFResourceFactory classes. The XML parser gets confused without the UUID's.
Previous Topic:Synchronize semantic and notation information on editor start
Next Topic:automatically create child nodes
Goto Forum:
  


Current Time: Wed Sep 23 11:10:22 GMT 2020

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

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

Back to the top