Import of ecore [message #1066676] |
Wed, 03 July 2013 17:10 |
Phil H Messages: 267 Registered: November 2012 |
Senior Member |
|
|
Hi,
I'm wondering how the import with Emfatic is working. As an example:
Ecore 1:
@namespace(
uri="/org.model.variability/model/pld.ecore",
prefix="p")
package pld;
@gmf.diagram(onefile="true", diagram.extension="pld", model.extension="pld")
class PL{
unsettable attr EString name = "PL";
}
....
Ecore 2:
@namespace(
uri="/org.model.variability.hw/model/hw.ecore",
prefix="p")
package hw;
import "platform:/resource/org.model.variability/model/pld.ecore";
In my second emf file, I imported the ecore of the first emf file. When I generate now an GMF Editor out of my second emf file, will the class PL used as diagram? In the metamodel, this class is used from both editors.. How is it possible to realise this?
Btw., what is the meaning of "prefix"?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03267 seconds