Skip to content
Snippets Groups Projects
Commit ab79b84b authored by Dott. Federico Volpini's avatar Dott. Federico Volpini
Browse files

Errors and Warnings are now discriminated in the Error Log View

parent 61a83b24
No related branches found
No related tags found
No related merge requests found
......@@ -65,17 +65,16 @@ public class ValidateOntUML extends TransformationHandler {
return SOURCE_FILE_SUFFIX;
}
public void executionMessage(String arg0, String arg1) {
// Send MofScript Message to Error Log
if ((arg0 == null || arg0.equals("") || arg0.equals("println")) || (arg0.equalsIgnoreCase("print"))) {
arg1 = arg1.trim();
this.getStream().println(arg1);
if(!arg1.startsWith("#") && arg1.startsWith("***")){
Activator.getDefault().getLog().log(new Status(IStatus.ERROR, "org.universaal.tools.transformationcommand", arg1));
if(!arg1.trim().startsWith("#")){
if(arg1.trim().startsWith("*")){
Activator.getDefault().getLog().log(new Status(IStatus.ERROR, "org.universaal.tools.transformationcommand", arg1.substring(1).trim()));
} else if(arg1.trim().startsWith("!")){
Activator.getDefault().getLog().log(new Status(IStatus.WARNING, "org.universaal.tools.transformationcommand", arg1.substring(1).trim()));
} else {
this.getStream().print(arg1);
}
}
}
}
\ No newline at end of file
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