|
Re: EMF edit command implementation [message #550839 is a reply to message #550642] |
Wed, 04 August 2010 13:34 |
Ed Merks 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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02992 seconds