Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Two editors with different editing domain
Two editors with different editing domain [message #1650469] Wed, 04 March 2015 21:10 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
I have a TreeViewer editor and Graphiti editor as part of MultiPageEditorPart, first editor uses AdapterFactoryEditingDomain and second TransactionalEditingDomain. I'd like two editors to be in sync with changes to the model, but if I understand correctly the two need to share the same domain. Still, can I achieve this without switching TreeViewer editor to TransactionalEditingDomain or changing domains is the only way to go about this, perhaps a delegate between two domains?
Re: Two editors with different editing domain [message #1650928 is a reply to message #1650469] Thu, 05 March 2015 03:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Alex,

It's hard to imagine how to get this to work unless you use a single
editing domain.

On 04/03/2015 10:10 PM, Alex Kravets wrote:
> I have a TreeViewer editor and Graphiti editor as part of
> MultiPageEditorPart, first editor uses AdapterFactoryEditingDomain and
> second TransactionalEditingDomain. I'd like two editors to be in sync
> with changes to the model, but if I understand correctly the two need
> to share the same domain. Still, can I achieve this without switching
> TreeViewer editor to TransactionalEditingDomain or changing domains is
> the only way to go about this, perhaps a delegate between two domains?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Two editors with different editing domain [message #1651821 is a reply to message #1650928] Thu, 05 March 2015 14:30 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thanks Ed,

Are there any plans to what editing domain is used during code generation? There is this bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=211524, but it's been a long time since it was updated.
Re: Two editors with different editing domain [message #1651846 is a reply to message #1651821] Thu, 05 March 2015 14:46 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Sorry but not really. I've never become familiar with this part of the
frameworks... :-(

On 05/03/2015 3:30 PM, Alex Kravets wrote:
> Thanks Ed,
>
> Are there any plans to what editing domain is used during code
> generation? There is this bugzilla
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=211524, but it's been a
> long time since it was updated.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Jface databinding for extended ecore models [solved]
Next Topic:Generating Java code from java classes in RCP
Goto Forum:
  


Current Time: Fri Apr 19 19:42:28 GMT 2024

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

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

Back to the top