Hi,
It depends on how you create problem markers. If you create markers
using ValidationErrorManager.addError(...) then you have to remove the
markers before validating the resource. You can use
ValidationErrorManager.removeAllMessagesFromResource(IResource)
We use these methods in our CDI validator.
On 09/24/2012 12:26 PM, Xavier Coulon wrote:
Hello Alexey,
I have another question common-validation that I use for the JAX-RS
tooling. This is in relation with
https://issues.jboss.org/browse/JBIDE-12595 ("Disabling JAX-RS
validator doesn't affect resources validation"). As Jaroslav reported,
when a user disables the JAX-RS validation, the problem markers (which
are now persistent) are not removed, which is not the expected
behavior. The only way to remove them is to delete them from the
"Problems" view.
When validation is disabled, is there any call to a method that I
could override to remove the JAX-RS problem markers on all the
resources of the project ?
Or, how do you handle that case in the CDI tooling ?
Thanks
Best regards,
/Xavier