Skip to content
Snippets Groups Projects
Commit a4f2f567 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

improves default message

refs 2553
parent d04a5a95
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author vincent
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 2CAFC35BCE6941999C382DCE461140F1
* @ConQAT.Rating YELLOW Hash: 2A312426A51C9EC5DA5F5520111FAED6
*/
public class ConstraintVerifierUIBase<T extends IConstraint> implements IConstraintVerifierUI<T> {
......@@ -166,7 +166,7 @@ public class ConstraintVerifierUIBase<T extends IConstraint> implements IConstra
public String getMessage(IConstraintVerificationStatus s) {
// Default message. Inheriting classes SHOULD specialize.
String name = IModelElementHandlerService.INSTANCE.getName(s.getConstraint());
String pre = s instanceof FailVerificationStatus ? "Error while checking" : "Unsatisfied";
return pre + " constraint" + (name == null ? "." : ": " + name);
String pre = s instanceof ErrorVerificationStatus ? "Error while checking" : "Unsatisfied";
return pre + " constraint" + (name == null ? "." : ": \"" + name + "\"");
}
}
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