Add EPackage of the EMF Registry as a reference in a my metamodelo's instance - Agregar un EPackage [message #1754893] |
Thu, 23 February 2017 16:13 |
Luis Felipe Mendivelso Osorio Messages: 3 Registered: February 2017 |
Junior Member |
|
|
Hello everyone,
I am new to Eclipse Epsilon, and built a transformation chain that allows you to generate view specs for Eclipse Sirius (.design files), however, for these you must add the nsURI of the metamodel in the specification was generated. I read about that, all the registers are in the EMF Registry, which is why you should look inside the EMF Registry with the nsURI of interest.
However, in doing so my model does indeed get the reference, but it does not work when the editor that will make use of the specification in Sirius runs on a second instance of Eclipse.
I done this:
var mymodel = new MS!MyModel()
var emfTool = new Native("org.eclipse.epsilon.emc.emf.tools.EmfTool");
var package =emfTool.getEPackage("www.example.org/mt");
mymodel.metamodel.add(package);
for(subpackage in package.eSubpackages){
mymodel.metamodels.add(subpackage);
}
Anyone have an idea what I can do to be make it functional in the second instance of Eclipse?
// For Spanish Speakers.
Hola a todos,
Soy relativamente nuevo en Eclipse Epsilon, y he construido una cadena de transformación que permite generar especificaciones de vista para Eclipse Sirius (archivos .odesign), sin embargo, para estas sirvan debe agregarse la nsURI del metamodelo frente a cual se generó la especificación. Por lo que he leido, todas los metamodelos se encuentran en el EMF Registry, razón por la cual se debe buscar dentro del EMF Registry con el nsURI de interes.
Sin embargo, al hacerlo mi modelo en efecto queda con la referencia, pero no funciona cuando el editor que hará uso de la especificación en Sirius corre sobre una segunda instancia.
¿Alguien tiene una idea de lo que puedo hacer para que sea funcional en la segunda instancia de Eclipse?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02331 seconds