I have xtext language which has an external compiler for context checking. I would like show the errors from the compiler in the editor. I’ve read somewhere that I have to implement a IResourceValidator. How do I do that?
You can just use bindIResourceValidator() to bind your own implementation.
For example, like this:
public Class<? extends IResourceValidator> bindIResourceValidator() {
return MyValidator.class;
}
Keep in mind, you'll use the original validator provided by Xtext
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more