Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » shared model in multiple editors
shared model in multiple editors [message #418377] Mon, 14 April 2008 23:15 Go to next message
Eclipse UserFriend
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 #418380 is a reply to message #418377] Mon, 14 April 2008 23:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: shared model in multiple editors [message #418403 is a reply to message #418380] Tue, 15 April 2008 07:11 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #418415 is a reply to message #418410] Tue, 15 April 2008 13:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050604030402070903020509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Marc,

Thanks for helping.

Luca,

Have a look at "Sharing single EditingDomain instance across several
diagrams" in news://news.eclipse.org/eclipse.modeling.gmf too.


Marc F


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: shared model in multiple editors [message #418416 is a reply to message #418380] Tue, 15 April 2008 13:28 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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<-----
Previous Topic:Remotely modifying an EMF model for design collaboration
Next Topic:[Temporality][Teneo] EStoreEObjectImpl dynamicGet
Goto Forum:
  


Current Time: Sat Apr 20 02:00:13 GMT 2024

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

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

Back to the top