Skip to main content

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

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:

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:

Type A : A1
Type A : A2

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,

Previous Topic:Synchronized or not, that's a problem
Next Topic:Is it possible to debug a GMF project??
Goto Forum:

Current Time: Thu Jun 21 03:17:11 GMT 2018

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

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

Back to the top