|
|
Re: Explanation of Editing Domain Id in GMF editor [message #178171 is a reply to message #178022] |
Wed, 19 March 2008 17:34 |
Eclipse User |
|
|
|
Originally posted by: gxquarel.txin.it
Indeed I will have trouble only if I retrive an EditingDomain from the
registry: in this case I'll get the last registered one.
So watching the code the ID is useful only for the enablement of
clientContext...
But at the moment I don't know what is a clientContentx, can you give a
brief description?
As you confirm all EditingDomains have same ID, so this "clientContext" is
always enabled, isn't it?
Thanks
Giovanni
"Alex Shatalin" <vano@borland.com> ha scritto nel messaggio
news:3c3172e61f9cb8ca573eeb435ba8@news.eclipse.org...
> Hello Giovanni,
>
>> Analyzing the code of my RCP GMF generated editor I understand that,
>> but if each editor has its own instance of EditingDomain, why all use
>> the same ID in the registry?
> By default generated code does not use Registry to create EditingDomain
> instances.
> Yes, all the newly created EditingDomains will have same ID.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Re: Explanation of Editing Domain Id in GMF editor [message #178478 is a reply to message #178246] |
Thu, 20 March 2008 19:52 |
Eclipse User |
|
|
|
Originally posted by: gxquarel.txin.it
I created my own registry so I have one EditingDomain per file.
Anyway I suppose it is mandatory to set the same ID to all of them to make
the client context working.
Isn't it?
Thanks
Giovanni
"Alex Shatalin" <vano@borland.com> ha scritto nel messaggio
news:3c3172e61fa988ca57e2b44f0e22@news.eclipse.org...
> Hello Giovanni,
>
>> Indeed I will have trouble only if I retrive an EditingDomain from the
>> registry: in this case I'll get the last registered one.
> You'll always get the same EditingDomain instance from the registry - this
> is whow this registry was created. To get new instance of EditingDomain
> per each "pair of eidtors" you have to create your own EditingDomain
> registry and create/dispatch existing EditingDomain instances from there
> using additional parameters (id of the "pair").
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05809 seconds