[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] How to change the EObjectImpl used for dynamical loaded models (rootExtendsClass for dynamic models)?
|
Suppose, I have a dynamically loaded model. Is there a way
to control the EObjectImpl that is used for the instances?
Currently I have a generated model
@namespace(uri="platform:/plugin/x.y.z/generated/root.ecore", prefix="root")
package root;
class EObjectImplRoot{
}
and in my dynamic models each object has to inherit from
the root:
@namespace(uri="platform:/plugin/x.y.z/dynamic/dyn.ecore", prefix="dyn")
package dyn;
import "platform:/plugin/x.y.z/generated/root.ecore";
class DynObject extends root.EObjectImplRoot {
}
That works fine. I just wonder if there is a way to make
that happen automatically. In the genmodel there is
the attribute "rootExtendsClass" attribute to control
the root class. Is there a way to control the EObject
of dynamic instances.
Michael
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/