Import a dsl language which is not present in the same workspace [message #1857223] |
Wed, 25 January 2023 15:05  |
Eclipse User |
|
|
|
Hello,
I have issues importing and using a dsl language that is not present in the same workspace.
Basically, i have language B and i want to use elements from language A, i have imported language A in my xtext file using
import "http://www.myDslA.com/dsl/myDslA/MyDslA" as myDslA
i use a target platform which brings myDslA module, and i have added the plugin in the required plugin section of the MANIFEST.MF.
I know i have to register the ecore and genmodel files in myDslB.mwe2 file, for a language that is present in the workspace i have added this:
referencedResource = "platform:/resource/com.myDslC/model/generated/myDslC.ecore"
referencedResource = "platform:/resource/com.myDslC/model/generated/myDslC.genmodel"
but i don't know how i could do this for a language that is not located in the same workspace, and I don't want to hardcode a path towards language A either. Any ideas? is this possible?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04216 seconds