How to extend Xtext DSL to use a validation class packaged with a library model ? [message #899075] |
Mon, 30 July 2012 09:38  |
Eclipse User |
|
|
|
Hi,
I'm working with one DSL and some library models that are packaged in its own bundles and could be installed separated.
I would like to deliver one validation class together to its own library (to deal with elements delivered by its library) but I don't want to add any dependency from the DSL to the libraries.
Could someone point me how could I do this ?
thanks,
Cristiano
|
|
|
Re: How to extend Xtext DSL to use a validation class packaged with a library model ? [message #899091 is a reply to message #899075] |
Mon, 30 July 2012 10:22   |
Eclipse User |
|
|
|
Hi,
IIRC, the validation uses all registered validators for a model.
Explore the source how your DSL's JavaValidator gets registered and called.
So, basically, the optional library extensions would register their
accompanying validators the same way.
Sorry, but I don't remember the details, but hope that helps you somewhat.
Regards
- henrik
On 2012-30-07 15:38, Cristiano Gaviao wrote:
> Hi,
> I'm working with one DSL and some library models that are packaged in
> its own bundles and could be installed separated.
>
> I would like to deliver one validation class together to its own library
> (to deal with elements delivered by its library) but I don't want to add
> any dependency from the DSL to the libraries.
>
> Could someone point me how could I do this ?
>
> thanks,
>
> Cristiano
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06327 seconds