Browse Source

Move GUI warning counter reset so it catches model build warnings too.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4185 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
fd85a16363
  1. 4
      prism/src/userinterface/properties/GUIMultiProperties.java
  2. 1
      prism/src/userinterface/properties/computation/ModelCheckThread.java
  3. 1
      prism/src/userinterface/properties/computation/SimulateModelCheckThread.java

4
prism/src/userinterface/properties/GUIMultiProperties.java

@ -792,6 +792,8 @@ public class GUIMultiProperties extends GUIPlugin implements MouseListener, List
error("None of the selected properties are suitable for simulation");
return;
}
// Reset warnings counter
getPrism().getMainLog().resetNumberOfWarnings();
// Request a parse
simulateAfterReceiveParseNotification = true;
notifyEventListeners(new GUIPropertiesEvent(GUIPropertiesEvent.REQUEST_MODEL_PARSE));
@ -822,6 +824,8 @@ public class GUIMultiProperties extends GUIPlugin implements MouseListener, List
error("None of the selected properties are suitable for verification. The model was not built");
return;
}
// Reset warnings counter
getPrism().getMainLog().resetNumberOfWarnings();
// Request a parse
verifyAfterReceiveParseNotification = true;
notifyEventListeners(new GUIPropertiesEvent(GUIPropertiesEvent.REQUEST_MODEL_PARSE));

1
prism/src/userinterface/properties/computation/ModelCheckThread.java

@ -188,7 +188,6 @@ public class ModelCheckThread extends GUIComputationThread
gp.setMethodString("Verification");
gp.setConstants(definedMFConstants, definedPFConstants);
gp.setNumberOfWarnings(prism.getMainLog().getNumberOfWarnings());
prism.getMainLog().resetNumberOfWarnings();
parent.repaintList();
}

1
prism/src/userinterface/properties/computation/SimulateModelCheckThread.java

@ -165,7 +165,6 @@ public class SimulateModelCheckThread extends GUIComputationThread
gp.setMethodString("Simulation");
gp.setConstants(definedMFConstants, definedPFConstants);
gp.setNumberOfWarnings(prism.getMainLog().getNumberOfWarnings());
prism.getMainLog().resetNumberOfWarnings();
}
}
// do each property individually

Loading…
Cancel
Save