Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Manipulate model from two or more editors
Manipulate model from two or more editors [message #154210] Mon, 08 October 2007 22:20 Go to next message
fchen is currently offline fchenFriend
Messages: 22
Registered: July 2009
Junior Member
I have an Ecore model which has say 20 classes. I generate an editor based
on GMF which touches about half of those classes. If I only want to edit
these classes then I should be all set since GMF takes care of
serialization and deserialization. However, I do need to manipulate all of
the classes (including the ones maintained by GMF editor) in another UI
form based editor. How should I do it? I was thinking connect both editors
to the serialized XML file so that I don't need to modify GMF editor. But
then I will have two memory representations of the same object, which will
cause sync problem down the load and it's vastly inefficient. Any help
appreciated.
Re: Manipulate model from two or more editors [message #154244 is a reply to message #154210] Tue, 09 October 2007 07:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Shared Editing domain is one possibility. There are lots of threads here
on that subject.


Regards,

Tomas

Feng wrote:
> I have an Ecore model which has say 20 classes. I generate an editor
> based on GMF which touches about half of those classes. If I only want
> to edit these classes then I should be all set since GMF takes care of
> serialization and deserialization. However, I do need to manipulate all
> of the classes (including the ones maintained by GMF editor) in another
> UI form based editor. How should I do it? I was thinking connect both
> editors to the serialized XML file so that I don't need to modify GMF
> editor. But then I will have two memory representations of the same
> object, which will cause sync problem down the load and it's vastly
> inefficient. Any help appreciated.
>
Re: Manipulate model from two or more editors [message #154259 is a reply to message #154210] Tue, 09 October 2007 08:32 Go to previous messageGo to next message
Nicolai Kamenzky is currently offline Nicolai KamenzkyFriend
Messages: 82
Registered: July 2009
Member
If your second editor should be graphical as well you may
also look for threads with the term "DiagramPartitioning".

Cheers,
Nicolai


--

I'm using an evaluation license of nemo since 36 days.
You should really try it!
http://www.malcom-mac.com/nemo
Re: Manipulate model from two or more editors [message #154383 is a reply to message #154244] Tue, 09 October 2007 13:53 Go to previous messageGo to next message
fchen is currently offline fchenFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks. I do find some threads on sharing the EditingDomain. It's great
help. There are also some entries in the tips and archived Q&A in GMF
Wiki. The information is there, it's just been buried too deep. That's my
only complaint about Eclipse.
Re: Manipulate model from two or more editors [message #154776 is a reply to message #154210] Thu, 11 October 2007 07:41 Go to previous message
Philipp Kutter is currently offline Philipp KutterFriend
Messages: 306
Registered: July 2009
Senior Member
Hi, Feng.
It seems to me the easiest and most scaling way to do this would be to
use CDO. (one of the projects under www.eclipse.org/modeling)

Best, Philipp

Feng wrote:
> I have an Ecore model which has say 20 classes. I generate an editor
> based on GMF which touches about half of those classes. If I only want
> to edit these classes then I should be all set since GMF takes care of
> serialization and deserialization. However, I do need to manipulate all
> of the classes (including the ones maintained by GMF editor) in another
> UI form based editor. How should I do it? I was thinking connect both
> editors to the serialized XML file so that I don't need to modify GMF
> editor. But then I will have two memory representations of the same
> object, which will cause sync problem down the load and it's vastly
> inefficient. Any help appreciated.
>
Previous Topic:Initialize Diagram File Action
Next Topic:How to create two o more nodes for same model element
Goto Forum:
  


Current Time: Mon Sep 16 22:28:31 GMT 2024

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

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

Back to the top