shared model in multiple editors [message #418377] |
Mon, 14 April 2008 23:15 |
Eclipse User |
|
|
|
Originally posted by: luca.picello.gmail.com
Hello folks,
I would like to have the same data model shared between different editors.
Because I would like to have data in sync between the editors I am
wondering if to have the same editor-domain is something required or
suggested.
Where is the place where we connect the editor to the model? Can you
please provide a working example or a reference?
Thank you all in advance
Luca
|
|
|
|
Re: shared model in multiple editors [message #418403 is a reply to message #418380] |
Tue, 15 April 2008 07:11 |
Eclipse User |
|
|
|
Originally posted by: luca_picello.mentor.com
Merks,
because I'm also new to Eclipse and all the rest, could you please give me a
hint to find the thread you are talking about?
Many thanks,
Luca
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fu0p63$i98$2@build.eclipse.org...
> Luca,
>
> I'm not sure there are any examples of shared editing domains. I think
> transactional editing domains could support this type of thing, but I
> can't think of any examples to point you at. Seems to me I've seen some
> similar questions on the GMF newsgroup in the last little while...
>
>
> Luca Picello wrote:
>> Hello folks,
>> I would like to have the same data model shared between different
>> editors.
>> Because I would like to have data in sync between the editors I am
>> wondering if to have the same editor-domain is something required or
>> suggested.
>> Where is the place where we connect the editor to the model? Can you
>> please provide a working example or a reference?
>> Thank you all in advance
>>
>> Luca
>>
>>
|
|
|
Re: shared model in multiple editors [message #418404 is a reply to message #418380] |
Tue, 15 April 2008 07:32 |
Eclipse User |
|
|
|
Originally posted by: luca_picello.mentor.com
> transactional editing domains < is the keyword !
thanks Ed, found documentation and examples in the Eclipse documentation !!
best regards,
Luca
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fu0p63$i98$2@build.eclipse.org...
> Luca,
>
> I'm not sure there are any examples of shared editing domains. I think
> transactional editing domains could support this type of thing, but I
> can't think of any examples to point you at. Seems to me I've seen some
> similar questions on the GMF newsgroup in the last little while...
>
>
> Luca Picello wrote:
>> Hello folks,
>> I would like to have the same data model shared between different
>> editors.
>> Because I would like to have data in sync between the editors I am
>> wondering if to have the same editor-domain is something required or
>> suggested.
>> Where is the place where we connect the editor to the model? Can you
>> please provide a working example or a reference?
>> Thank you all in advance
>>
>> Luca
>>
>>
|
|
|
Re: shared model in multiple editors [message #418407 is a reply to message #418404] |
Tue, 15 April 2008 12:04 |
Eclipse User |
|
|
|
Originally posted by: luca_picello.mentor.com
Ed, I was wrong... the example in the documentation is not complete. :-(
And I am wondering if this transactional editing domain is something related
to Eclipse 3.1 also..
I see you wrote a book on EMF and I decided to buy it but cannot understand
if you wrote something regarding this particolar use case.
thanks in advance
Luca
"Luca Picello" <luca_picello@mentor.com> wrote in message
news:fu1lme$ve3$1@build.eclipse.org...
>> transactional editing domains < is the keyword !
> thanks Ed, found documentation and examples in the Eclipse documentation
> !!
> best regards,
>
> Luca
>
>
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:fu0p63$i98$2@build.eclipse.org...
>> Luca,
>>
>> I'm not sure there are any examples of shared editing domains. I think
>> transactional editing domains could support this type of thing, but I
>> can't think of any examples to point you at. Seems to me I've seen some
>> similar questions on the GMF newsgroup in the last little while...
>>
>>
>> Luca Picello wrote:
>>> Hello folks,
>>> I would like to have the same data model shared between different
>>> editors.
>>> Because I would like to have data in sync between the editors I am
>>> wondering if to have the same editor-domain is something required or
>>> suggested.
>>> Where is the place where we connect the editor to the model? Can you
>>> please provide a working example or a reference?
>>> Thank you all in advance
>>>
>>> Luca
>>>
>>>
>
|
|
|
Re: shared model in multiple editors [message #418410 is a reply to message #418407] |
Tue, 15 April 2008 12:41 |
Eclipse User |
|
|
|
Originally posted by: L1K3D33L3R.gmail.com
Dear Luca,
there is an interesting article in the database at
http://www.eclipse.org/articles/article.php?file=Article-Int egrating-EMF-GMF-Editors/index.html.
I am not sure if this will help you for the exact problem, but it seems to
me that it goes in the direction of your original question.
Regards
Marc
"Luca Picello" <luca_picello@mentor.com> wrote in message
news:fu25l6$ieb$1@build.eclipse.org...
> Ed, I was wrong... the example in the documentation is not complete. :-(
> And I am wondering if this transactional editing domain is something
> related to Eclipse 3.1 also..
> I see you wrote a book on EMF and I decided to buy it but cannot
> understand if you wrote something regarding this particolar use case.
>
> thanks in advance
>
> Luca
>
>
>
> "Luca Picello" <luca_picello@mentor.com> wrote in message
> news:fu1lme$ve3$1@build.eclipse.org...
>>> transactional editing domains < is the keyword !
>> thanks Ed, found documentation and examples in the Eclipse documentation
>> !!
>> best regards,
>>
>> Luca
>>
>>
>>
>> "Ed Merks" <merks@ca.ibm.com> wrote in message
>> news:fu0p63$i98$2@build.eclipse.org...
>>> Luca,
>>>
>>> I'm not sure there are any examples of shared editing domains. I think
>>> transactional editing domains could support this type of thing, but I
>>> can't think of any examples to point you at. Seems to me I've seen some
>>> similar questions on the GMF newsgroup in the last little while...
>>>
>>>
>>> Luca Picello wrote:
>>>> Hello folks,
>>>> I would like to have the same data model shared between different
>>>> editors.
>>>> Because I would like to have data in sync between the editors I am
>>>> wondering if to have the same editor-domain is something required or
>>>> suggested.
>>>> Where is the place where we connect the editor to the model? Can you
>>>> please provide a working example or a reference?
>>>> Thank you all in advance
>>>>
>>>> Luca
>>>>
>>>>
>>
>
|
|
|
|
Re: shared model in multiple editors [message #418416 is a reply to message #418380] |
Tue, 15 April 2008 13:28 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Ed, Luca,
There is an example of multiple editors sharing an editing domain: the
org.eclipse.emf.workspace.examples.library.editor example plug-in included
in the EMF Transaction SDK. This is a hand-coded "enhancement" of the
generated EXTLibrary editor, which demonstrates (among other things) the
sharing of an editing domain. A separate editor opens on every
*.extlibrary resource loaded into the shared editing domain.
Have a look at the Examples Guide in the EMF Transaction Developer Guide in
the on-line help for details (assuming that you have the SDK installed).
HTH,
Christian
Ed Merks wrote:
> Luca,
>
> I'm not sure there are any examples of shared editing domains. I think
> transactional editing domains could support this type of thing, but I
> can't think of any examples to point you at. Seems to me I've seen some
> similar questions on the GMF newsgroup in the last little while...
>
>
> Luca Picello wrote:
>> Hello folks,
>> I would like to have the same data model shared between different
>> editors.
>> Because I would like to have data in sync between the editors I am
>> wondering if to have the same editor-domain is something required or
>> suggested.
>> Where is the place where we connect the editor to the model? Can you
>> please provide a working example or a reference?
>> Thank you all in advance
>>
>> Luca
>>
>>
|
|
|
Re: shared model in multiple editors [message #418417 is a reply to message #418416] |
Tue, 15 April 2008 14:10 |
Eclipse User |
|
|
|
Originally posted by: luca_picello.mentor.com
Thanks Christian.
dear all,
is it possible to have 1 domain per editor but having all of them working
with the same data-model ?
Are we going to create any inconsistence ?
many thanks,
Luca
"Christian W. Damus" <cdamus@ca.ibm.com> wrote in message
news:fu2ah5$65i$1@build.eclipse.org...
> Hi, Ed, Luca,
>
> There is an example of multiple editors sharing an editing domain: the
> org.eclipse.emf.workspace.examples.library.editor example plug-in included
> in the EMF Transaction SDK. This is a hand-coded "enhancement" of the
> generated EXTLibrary editor, which demonstrates (among other things) the
> sharing of an editing domain. A separate editor opens on every
> *.extlibrary resource loaded into the shared editing domain.
>
> Have a look at the Examples Guide in the EMF Transaction Developer Guide
> in
> the on-line help for details (assuming that you have the SDK installed).
>
> HTH,
>
> Christian
>
>
> Ed Merks wrote:
>
>> Luca,
>>
>> I'm not sure there are any examples of shared editing domains. I think
>> transactional editing domains could support this type of thing, but I
>> can't think of any examples to point you at. Seems to me I've seen some
>> similar questions on the GMF newsgroup in the last little while...
>>
>>
>> Luca Picello wrote:
>>> Hello folks,
>>> I would like to have the same data model shared between different
>>> editors.
>>> Because I would like to have data in sync between the editors I am
>>> wondering if to have the same editor-domain is something required or
>>> suggested.
>>> Where is the place where we connect the editor to the model? Can you
>>> please provide a working example or a reference?
>>> Thank you all in advance
>>>
>>> Luca
>>>
>>>
>
|
|
|
Re: shared model in multiple editors [message #418586 is a reply to message #418417] |
Mon, 21 April 2008 13:11 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Luca,
Sorry for the long delay in replying.
Attempting to share a single resource instance amongst multiple
TransactionalEditingDomains will not work. Every editor that wants to
modify the content of such a resource will have to know about every editing
domain, in order to create simultaneous transactions in each, as each
domain will apply the same transaction controls to it.
This is not only awkward (as it defeats the purpose of letting each editor
have its own editing domain) but will undoubtedly lead to lock ordering
problems (i.e., deadlock).
Cheers,
Christian
Luca Picello wrote:
> Thanks Christian.
> dear all,
> is it possible to have 1 domain per editor but having all of them working
> with the same data-model ?
> Are we going to create any inconsistence ?
>
> many thanks,
>
> Luca
-----8<-----
|
|
|
Powered by
FUDForum. Page generated in 0.03581 seconds