Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF edit command implementation
EMF edit command implementation [message #550642] Wed, 04 August 2010 01:58 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Hi Ed,

Is there a reason that the EMF edit commands are not based on ecore? Could they be? I ask because the concept of remote editing where you replay the edit commands on a server has become interesting. If the edit commands were based on ecore, then you could, in theory, easily serialize the commands and send them to a server.

Bryan
Re: EMF edit command implementation [message #550839 is a reply to message #550642] Wed, 04 August 2010 13:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Bryan,

Comments below.

Bryan Hunt wrote:
> Hi Ed,
>
> Is there a reason that the EMF edit commands are not based on ecore?
I'm not sure what you mean. The basic command framework is in
org.eclipse.emf.common which is independent of Ecore. The commands in
org.eclipse.emf.edit rely significantly on Ecore as the metamodel, but
also need to work for things that aren't instances of EObject, e.g.,
Resource and ResourceSet.
> Could they be? I ask because the concept of remote editing where
> you replay the edit commands on a server has become interesting. If
> the edit commands were based on ecore, then you could, in theory,
> easily serialize the commands and send them to a server.
So you mean the commands themselves are modeled objects that can be
persisted. That could be quite tricky. You'd get into issues similar
to the Change framework. E.g., in order to serialize, it becomes
important for all objects to be contained in a resource, which is
generally not the case for new objects being added...
>
> Bryan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF edit command implementation [message #550850 is a reply to message #550839] Wed, 04 August 2010 13:49 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Quote:

So you mean the commands themselves are modeled objects that can be persisted.



Yes, that's what I meant.

Quote:

You'd get into issues similar to the Change framework. E.g., in order to serialize, it becomes important for all objects to be contained in a resource, which is generally not the case for new objects being added...



Yes, serializing the commands would be a challenge. I hope to have an interesting solution for that challenge soon.
Previous Topic:Unwanted EMF Editor dependencies on File Extension Filters?
Next Topic:[TENEO] Problem with orm.xml file generation
Goto Forum:
  


Current Time: Wed Sep 25 18:08:26 GMT 2024

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

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

Back to the top