Skip to content
Snippets Groups Projects
Commit 88d6320a authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

use Parent prefix when needed

parent c42a2641
No related branches found
No related tags found
1 merge request!8Resolve "update to change in SCL metamodel"
Pipeline #1248 passed
......@@ -135,7 +135,7 @@ public class AnyLNValidator {
Diagnostic.ERROR,
RiseClipseValidatorSCL.DIAGNOSTIC_SOURCE,
0,
"DO " + doi + " cannot appear more than once in LN at line " + doi.getAnyLN().getLineNumber(),
"DO " + doi + " cannot appear more than once in LN at line " + doi.getParentAnyLN().getLineNumber(),
new Object[] { doi } ));
return false;
}
......@@ -146,7 +146,7 @@ public class AnyLNValidator {
Diagnostic.ERROR,
RiseClipseValidatorSCL.DIAGNOSTIC_SOURCE,
0,
"DO " + doi + " is forbidden in LN at line " + doi.getAnyLN().getLineNumber(),
"DO " + doi + " is forbidden in LN at line " + doi.getParentAnyLN().getLineNumber(),
new Object[] { doi } ));
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment