Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable UUIDs?
Disable UUIDs? [message #515495] Thu, 18 February 2010 20:39 Go to next message
Eclipse UserFriend
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] Thu, 18 February 2010 21:41 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Disable UUIDs? [message #515638 is a reply to message #515500] Fri, 19 February 2010 10:28 Go to previous messageGo to next message
Eclipse UserFriend
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 16:47 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 13:46:04 EDT 2025

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

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

Back to the top