One model and multiple diagram editors [message #120922] |
Fri, 20 April 2007 07:26 |
Eclipse User |
|
|
|
Originally posted by: ckuchibhotla.velozglobal.com
Hi all,
I am pretty new to GMF (1.0.3) and my requirement is as follows,
I have a model having many elements and I want to create multiple editors
for this model. I have gone through the posts and created two editors for
the same model.
In the course of creating this I have created one common editing domain and
specified it in the elementTypeBindings for both the diagram editors.
The problem I have is that, if I create second model and put some elements
in it, I am able to reference elements that are created in the first model
and vice versa.
Also, when I change one diagram all diagrams in both models become dirty.
Since I am using the same editing domain, this problem is hapenning.
Is this the right way, how do I specify that diagrams created from the
second model should not reference objects in the first model and vice
versa??
Is this a code change (GMF 1.0.3) If yes, can you please send me the code
snippet if available?
Correct me If I have done something which is not right!
This is what is happening,
first.model
- first.diagram1 - (references from first.model and second.model)
- first.diagram2 - (references from first.model and second.model)
second.model
- second.diagram1 - (references from second.model and first.model)
- second.diagram2 - (references from second.model and first.model)
What is intended,
first.model
- first.diagram1 - (references from first.model)
- first.diagram2 - (references from first.model)
second.model
- second.diagram1 - (references from second.model)
- second.diagram2 - (references from second.model)
Thanks in advance,
Charan
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03024 seconds