Skip to main content



      Home
Home » Modeling » EMF » Two editors with different editing domain
Two editors with different editing domain [message #1650469] Wed, 04 March 2015 16:10 Go to next message
Eclipse UserFriend
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] Wed, 04 March 2015 22:20 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: Two editors with different editing domain [message #1651821 is a reply to message #1650928] Thu, 05 March 2015 09:30 Go to previous messageGo to next message
Eclipse UserFriend
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 09:46 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Jface databinding for extended ecore models [solved]
Next Topic:Generating Java code from java classes in RCP
Goto Forum:
  


Current Time: Sun Aug 31 08:17:00 EDT 2025

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

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

Back to the top