Disable UUIDs? [message #515495] |
Thu, 18 February 2010 20:39  |
Eclipse User |
|
|
|
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 #515500 is a reply to message #515495] |
Thu, 18 February 2010 21:41   |
Eclipse User |
|
|
|
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 #515714 is a reply to message #515638] |
Fri, 19 February 2010 16:47  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06682 seconds