Skip to content

Commit

Permalink
Update ModelValidator.java
Browse files Browse the repository at this point in the history
Temporarily switch to Eclipse internal model validation to more accurately measure errors.
  • Loading branch information
dr6817 authored Dec 12, 2023
1 parent 7f856f1 commit afa8ee6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public ModelValidator(final Logger logger) {
*/
@Override
public boolean validate(final EObject eObject, final String name) {
final Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
return true;
/*final Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
return switch (diagnostic.getSeverity()) {
case Diagnostic.OK -> true;
case Diagnostic.INFO -> {
Expand All @@ -50,7 +51,7 @@ public boolean validate(final EObject eObject, final String name) {
this.logger.severe("Validation returned unexpected result");
yield false;
}
};
};*/
}

private void logResult(final Diagnostic diagnostic, final String name, final Level logLevel) {
Expand Down

0 comments on commit afa8ee6

Please sign in to comment.