Reference to files from plugins or projects [message #1750170] |
Fri, 16 December 2016 16:39  |
Eclipse User |
|
|
|
Hello together,
i wrote a grammar to reference EObjects from other .ecore-Files. This works fine if i copy the file directly besides the .mydsl-file.
eobject=[ecore::EClass|FQN]
What i want is to reference to eobjects from .ecore-files from other projects or plugins. How can i achieve this?
Thank you for your time.
Greetings,
Simon
|
|
|
|
|
|
Re: Reference to files from plugins or projects [message #1750482 is a reply to message #1750479] |
Wed, 21 December 2016 14:26   |
Eclipse User |
|
|
|
As always your Questions are right on point. With the added XText-Nature it works with a project thats in my workspace.
however i need to use an .ecore-file thats packed in an eclipse-plugin. how can i add xtext nature to a plugin? Or is there another way?
|
|
|
|
|
|
|
|
|
|
|
Re: Reference to files from plugins or projects [message #1750545 is a reply to message #1750544] |
Thu, 22 December 2016 12:06   |
Eclipse User |
|
|
|
from the Elements i get from the getScope-method.
i try to save the emf-model i get from the mydsl-editor into another emf-instance-model. and i always get the error Resource '/<project-name>' does not exist. Wich is true because the resource is a plugin and not a project that i have in my workspace.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04823 seconds