Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Shared editing domain but not domain instance?
Shared editing domain but not domain instance? [message #734727] Sun, 09 October 2011 15:21
Nigel Daniels is currently offline Nigel DanielsFriend
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
Previous Topic:Synchronized or not, that's a problem
Next Topic:Is it possible to debug a GMF project??
Goto Forum:
  


Current Time: Tue Dec 23 00:17:12 GMT 2014

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

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