Remove quick-fix actions from ValidationProblems list through Java

Are you missing a feature? Request its implementation here.
vitorhugovm
Posts: 31
Joined: Fri Jan 26, 2024 3:31 pm

Remove quick-fix actions from ValidationProblems list through Java

Post by vitorhugovm »

Hello!

Is there a way to remove quick-fix actions inside a problem from ValidationProblems through Java?
I have access to the problems list by extending ValidationProblemsFilter and then calling the following function:

Code: Select all

this.problems = validationProblems.getProblemsList()
Example:
image.png
image.png (14.59 KiB) Viewed 502 times
I can edit the text inside, but I didn't find a way to remove or customize these two actions below the error text by using this same class or any other in the Java API. How could I do that?

Thanks!
Vitor
cosminef
Site Admin
Posts: 185
Joined: Wed Aug 30, 2023 2:33 pm

Re: Remove quick-fix actions from ValidationProblems list through Java

Post by cosminef »

Hello,

You can remove or customize those actions directly from your Schema file.

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply