|
Re: Built in types for non Xbase based language [message #1080886 is a reply to message #1079568] |
Tue, 06 August 2013 13:48 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Are your DSL projects plug-in projects? Then you could add the plug-in
containing your library types to the dependencies. This should work even
if the library plug-in is installed. Make sure the models containing the
library types are exported in the build.properties.
Otherwise you have to put the library models on the global scope
somehow, e.g. by hooking into your IGlobalScopeProvider or defining a
org.eclipse.xtext.resource.IContainer that contains the
IResourceDescriptions for the library models.
Am 05.08.13 14:10, schrieb Rodrigo Watanabe:
> Im developing a DSL that cross-compiles to Javascript, but I am having
> some difficulty to figure out how to "Overlay" the native types like
> String, Math, Number and so on.
>
> Here what I've came up so far...
>
> I have a couple of files written in my DSL located at the plugins main
> package ex: String.mydsl, Number.mydsl...
>
> I've already overridden
> ImportedNamespaceAwareLocalScopeProvider.getImplicitImports(), it
> work's, but only when I have the files on the DSL project.
>
> How to put this files on my DSLs projects scope, so that my scope
> provider can show the built in types?
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
|
Powered by
FUDForum. Page generated in 0.01981 seconds