import xtext resource file from other projects [message #997199] |
Fri, 04 January 2013 07:46  |
Eclipse User |
|
|
|
Hi,
I need to import xtext resource files writed in external eclipse projects. So I wan't to create a basic project with generic types in my language. The other projects should have possibility to see the elements from the elements created in the own and in the basic project.
Example1: "BaseProject/src/resources/basetypes.xtext"
module de.base
entity BaseEntity {
...
}
Example2: "MyProject/src/resources/carsmanagement.xtext"
import de.base
entity Car extends BaseEntity {
...
}
The question is how to set xtext, so that i see also the elements defined in other projects. In the moment i see only local files in the own project.
|
|
|
|
Re: import xtext resource file from other projects [message #997615 is a reply to message #997199] |
Sun, 06 January 2013 19:40  |
Eclipse User |
|
|
|
This is described in the documentation. It is either "all in same
project", use OSGi class loaders, or custom (IIRC).
The most powerful out of the box is the OSGi class loaders. I would
recommend using that unless you have a requirement to run without JDT
being installed. (In Cloudsmith Geppetto @ github, we do not include
JDT, and use custom visibility between projects since the language it is
supporting uses a different kind of metadata than OSGi). (It was not
that easily achieved; and hence I recommend using the standard java/OSGi
way of making things visible).
Hope that helps.
Regards
- henrik
On 2013-04-01 19:21, Rober Borecki wrote:
> Hi,
>
> I need to import xtext resource files writed in external eclipse
> projects. So I wan't to create a basic project with generic types in my
> language. The other projects should have possibility to see the elements
> from the elements created in the own and in the basic project.
>
> Example1: "BaseProject/src/resources/basetypes.xtext"
> module de.base
> entity BaseEntity {
> ...
> }
>
> Example2: "MyProject/src/resources/carsmanagement.xtext"
> import de.base
>
> entity Car extends BaseEntity {
> ...
> }
>
> The question is how to set xtext, so that i see also the elements
> defined in other projects. In the moment i see only local files in the
> own project.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04217 seconds