Issue #1633 Change to WarnGenDialog so the checkFollowupSelection method uses Simulated Time.

Change-Id: I8d25084a88506f6e9bec72cfd40f02165d421869

Former-commit-id: 1d51a10f4b [formerly 011b0822a8942d6dc4307b0a422060d9a97c7f8d]
Former-commit-id: 1b693994a5
This commit is contained in:
Roger Ferrel 2013-02-18 12:14:17 -06:00
parent 3ad71676b3
commit a2e61d32a1

View file

@ -133,6 +133,7 @@ import com.vividsolutions.jts.geom.Polygon;
* Feb 7, 2013 DR 15799 Qinglu Lin Added setPolygonLocked(false) to conSelected(), newSelected(); added
* setPolygonLocked(true) below conSelected() is called in corSelected(),
* and removed it from updateListSelected().
* Feb 18, 2013 #1633 rferrel Changed checkFollowupSelection to use SimulatedTime.
*
* </pre>
*
@ -1112,7 +1113,7 @@ public class WarngenDialog extends CaveSWTDialog implements
}
if (timeRange != null
&& timeRange.contains(Calendar.getInstance().getTime()) == false) {
&& timeRange.contains(SimulatedTime.getSystemTime().getTime()) == false) {
// The action is no longer available in the follow up/update list
statusHandler.handle(Priority.PROBLEM,
"Follow up product has nothing to follow up.");