Display EXPENSIVE checks when building [message #1793212] |
Wed, 01 August 2018 10:46  |
Eclipse User |
|
|
|
Hey guys,
I want to do the Xtext validation programatically. Therefore I perform the following code:
final IResourceValidator validator = eResource.getResourceServiceProvider().getResourceValidator();
return validator.validate(eResource, CheckMode.ALL, null);
This works fine for getting all validation issues.
The problem is, that the error markers are not shown.
I read in another forum topic that it should be sufficient if a project build just with the XtextBuilder is triggered.
So I've tried this:
project.build(IncrementalProjectBuilder.FULL_BUILD, XTEXT_BUILDER_ID, null, new NullProgressMonitor());
Unfortunately, the markers are not generated too.
The biggest problem for me is, that the markers for EXPENSIVE checks are not shown.
Is there a way to show the markers? Or could you give me a hint about what I'm doing wrong?
Thank you very much! =)
Alex
|
|
|
|
|
|
|
|
|
|
Re: Display EXPENSIVE checks when building [message #1793250 is a reply to message #1793248] |
Thu, 02 August 2018 03:11  |
Eclipse User |
|
|
|
of course you could call the vaidator manually and created the annotations and markers manually too.
see that MarkerCreator does. and what ValidationJob+ ValidateActionHandler do.
=> you need to call the validator
=> you need to create markers
=> maybe you need to do something to update marker annotations in open editors
|
|
|
Powered by
FUDForum. Page generated in 0.50637 seconds