Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » One model and multiple diagram editors
One model and multiple diagram editors [message #120922] Fri, 20 April 2007 07:26 Go to next message
Eclipse UserFriend
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
Re: One model and multiple diagram editors [message #121220 is a reply to message #120922] Mon, 23 April 2007 11:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sri,

> In the course of creating this I have created one common editing
> domain and
Try using different editing domains.

-----------------
Alex Shatalin
Re: One model and multiple diagram editors [message #122400 is a reply to message #121220] Fri, 27 April 2007 19:04 Go to previous message
Eclipse UserFriend
Originally posted by: ckuchibhotla.velozglobal.com

Hi Alex,

I have now moved to 2.0M6 and this problem is solved and yes the editing
domains that are generated are different.
Thank you.

Regards,
Charan

"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e612d288c953c580cf6a7f@news.eclipse.org...
> Hello Sri,
>
>> In the course of creating this I have created one common editing
>> domain and
> Try using different editing domains.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:hoe to accesss the diagram element
Next Topic:Getting editing domain from a menu
Goto Forum:
  


Current Time: Sun Oct 06 08:23:33 GMT 2024

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

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

Back to the top