ASM #14554 - MPE: Best Estimate QPE changes with polygon after saving. - Changed to removed polygon after the save.

Change-Id: Icd4f867e07c6ec1f850cc1e8e73fd31d98dbbb46

Former-commit-id: 53b54a1073 [formerly d369e6f5eeb6463813982784207d234fb48cc3b7]
Former-commit-id: ac2b2bc0f0
This commit is contained in:
steve.naples 2015-03-10 18:27:05 +00:00
parent a044aefeec
commit 719f03c9a2
2 changed files with 8 additions and 1 deletions

View file

@ -53,6 +53,7 @@ import com.raytheon.viz.mpe.core.MPEProcessGrib;
import com.raytheon.viz.mpe.ui.Activator;
import com.raytheon.viz.mpe.ui.DisplayFieldData;
import com.raytheon.viz.mpe.ui.MPEDisplayManager;
import com.raytheon.viz.mpe.ui.dialogs.polygon.PolygonEditManager;
/**
*
@ -69,6 +70,7 @@ import com.raytheon.viz.mpe.ui.MPEDisplayManager;
*
* Apr29, 2014 16308 lbousaidi transmit RFC Bias when an hour
* MPE is saved via the GUI.
* Mar 10, 2015 14554 snaples Added check to remove Best Estimate polygons after saving.
* </pre>
*
* @author mschenke
@ -282,6 +284,10 @@ public class SaveBestEstimate {
}
}
File qpePolyFile = PolygonEditManager.getHourlyEditFile(bestEstField, editDate);
if(qpePolyFile.exists()){
qpePolyFile.delete();
}
MPEDisplayManager.getCurrent().setSavedData(true);
}

View file

@ -23,6 +23,7 @@
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jan 7, 2015 16954 cgobs Fix for cv_use issue - using getFieldName() in certain parts.
* Mar 10, 2015 14554 snaples Made getHourlyEditFile public to be accessed from Save Best Estimate.
* </pre>
**/
package com.raytheon.viz.mpe.ui.dialogs.polygon;
@ -295,7 +296,7 @@ public class PolygonEditManager {
}
}
private static File getHourlyEditFile(DisplayFieldData fieldData, Date date) {
public static File getHourlyEditFile(DisplayFieldData fieldData, Date date) {
String fieldname = fieldData.getFieldName();
String polygonDir = MPEDisplayManager.getPolygonEditDir();