Sharing the semantic model with another editor and editing domain [message #1761423] |
Wed, 10 May 2017 22:23 |
Chris Mamorella Messages: 34 Registered: June 2013 |
Member |
|
|
For our application, Sirius must exist in tandem with another editor "X" and both must share the same semantic model. Changes in one editor need to be reflected in the other and vice versa. Editor "X" has its own editing domain. Sirius has its own TransactionalEditingDomain. Is there a way to make Sirius use Editor "X"s editing domain? It seems like the only viable solution is for both editors to share the same editing domain since they have to share the same model reference.
I've seen high level documentation suggesting that Sirius can manage the sharing of command stacks and editing domains across editors, but I've so far not come across anything more specific. This would seem to be a common problem or use case. Is there an extension point that I could use to supply a custom editing domain or some other way to override the TransasctionalEditingDomain?
[Updated on: Thu, 11 May 2017 14:56] Report message to a moderator
|
|
|
Re: Sharing the semantic model with another editor and editing domain [message #1763401 is a reply to message #1761423] |
Mon, 15 May 2017 09:42 |
|
Hello
As a first simple solution, you can use the editing domain used in Sirius Session for your editor.
SessionManager.INSTANCE.getSession(URI sessionResourceURI, IProgressMonitor) or SessionManager.INSTANCE.getExistingSession(URI ) and then session.getTransactionalEditingDomain() .
Otherwise, you can effectively provide an implementation for the org.eclipse.sirius.common.editingDomainFactory extension point, if you need to set some specificities.
Regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03693 seconds