Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » same or different TransactionalEditingDomain ?
same or different TransactionalEditingDomain ? [message #208369] Sat, 11 October 2008 19:44 Go to next message
Eclipse UserFriend
Originally posted by: spam.spam.spam

Hello everybody,
I have to base my appl. on a multi-page diagram editor whose pages are
instances of
the usual generated editor. There are specialized nodes -"Sub-Diagrams"- and
when
one of these is clicked a new page for the Sub-Diagram should open in the
multi-page editor.
Until now I wasn't able to find a firm and clear answer:
Should I give these editors (the separate pages in the multi-page) different
TransactionalEditingDomains or a single shared one ?

I think somewhere I read it is recommended to use a single TrEdDomain. On
the other hand,
right now I am playing with the Taipan example and it for sure uses
different
TransactionalEditingDomains for the taipan_diagrams and the linked
port_diagrams .
I believe there isn't a big difference between my use-case and that of the
Ports: when a
special node that is meant to contain other nodes is double-clicked it
should be opened somewhere for editing...
Any comments or info about new/updated references dealing with
TransactionalEditingDomains / Resources / ResourceSets / Linked Diagram
Editors / Muilti-page Diagram Editors ?
Cheers,
Theo
Re: same or different TransactionalEditingDomain ? [message #208700 is a reply to message #208369] Wed, 15 October 2008 11:19 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Theo,

> Should I give these editors (the separate pages in the multi-page)
> different TransactionalEditingDomains or a single shared one ?
I suggest you share EditingDomain instance across all the pages in this multipage
editor. My point it: different Editors should handle different EditingDomains,
multiple pages of the same Editor shouold handle same EditingDomain instances.

-----------------
Alex Shatalin
Previous Topic:Can't show subnodes shortcut of the diagram node
Next Topic:Problem of infinite loop at element creation
Goto Forum:
  


Current Time: Thu Apr 18 08:38:27 GMT 2024

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

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

Back to the top