Changing default validation messages
-
28-10-2019 - |
Question
Using EMF Validation to validate model I get error messages such as
The feature 'blah' of 'blah' with 0 values must have at least 1 values
This message might be confusing to user, is there anyway I can override this error message for particular element/attribute with custom message? In a schema perhaps?
Solution
We have done this by adding a new fragment for org.eclipse.emf.ecore
with our new message texts in the file plugin_en.properties
. These will take precedence over the texts in plugin.properties
...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow