if (array[0].equals("warnings")) {
if (warnings.size()==0) span.setLength(len2);
else if (warnings.size()>1) span.logBold("Note: There were "+warnings.size()+" compilation warnings. Please scroll up to see them.\n\n");
else span.logBold("Note: There was 1 compilation warning. Please scroll up to see them.\n\n");
if (warnings.size()>0 && Boolean.FALSE.equals(array[1])) {
Pos e = warnings.iterator().next().pos;
gui.doVisualize("POS: "+e.x+" "+e.y+" "+e.x2+" "+e.y2+" "+e.filename);
span.logBold("Warnings often indicate errors in the model.\n"
+"Some warnings can affect the soundness of the analysis.\n"
+"To proceed despite the warnings, go to the Options menu.\n");
}
}
if (array[0].equals("warning")) {
ErrorWarning e = (ErrorWarning)(array[1]);
if (!warnings.add(e)) return;
Pos p=e.pos;
span.logLink("Warning #"+warnings.size(), "POS: "+p.x+" "+p.y+" "+p.x2+" "+p.y2+" "+p.filename);
span.log("\n"); span.logIndented(e.msg.trim()); span.log("\n\n");
}
if (array[0].equals("sat")) {
boolean chk = Boolean.TRUE.equals(array[1]);