Shared editing domain but not domain instance? [message #734727] |
Sun, 09 October 2011 15:21 |
Nigel Daniels Messages: 66 Registered: July 2009 |
Member |
|
|
Hi,
I have been experimenting with using a shared editing domain and I am
wondering if I have made an error or misunderstood what I can do using
this technique.
I have created a domain model where classes TypeA and TypeB are both
contained by a single TestCanvas class. TypeA has a 0..* reference
relationship to TypeB. i.e.
TestCanvas contains -> 0..* TypeA
TestCanvas contains -> 0..* TypeB
TypeA -> 0..* TypeB
I then created two GMF diagram projects one that allow the user to
create TypeA nodes only and one to create TypeB nodes. I then followed
the tutorial steps found here:
http://wiki.eclipse.org/Graphical_Modeling_Framework/Tips#Sharing_single_EditingDomain_instance_across_several_diagrams
to set up a shared editing domain. It seems this works as I can run the
test environment and create a two diagrams as follows:
default.typeAdiagram
Type A : A1
Type A : A2
default.typeBdiagram
Type B : B1
Type B : B2
Type B : B3
The first diagram notices that changes have been made in the second
diagram as it asks if it should reload. However the new diagram wizards
do not allow me to share the same domain instance file and the TypeB
nodes are not available in the first diagram. Both of these have their
own domain instance files.
Should having a shared editing domain allow me to use a shared domain
instance file so that nodes created in one diagram are available in the
other much like using diagram partitioning? If it is not does any one
have any guidance on what I may need to do to allow this to happen?
Thanks for any help,
Nigel
|
|
|
Powered by
FUDForum. Page generated in 0.02545 seconds