Issue #1589 - Fix saving of custom subset areas in spatial subset tab

Change-Id: I4143de4c3ab78a6da4de407d9035e70e264fe95a

Former-commit-id: f845137930 [formerly 1511490c55 [formerly 09e0a2450e8e1c860ae3e8d6354320cc0b2b6d88]]
Former-commit-id: 1511490c55
Former-commit-id: 4c47ee820d
This commit is contained in:
Mike Duff 2013-02-20 14:57:58 -06:00
parent 376a966852
commit 9dfaee98a1

View file

@ -58,6 +58,7 @@ import com.raytheon.uf.viz.datadelivery.utils.DataDeliveryUtils;
* Dec 07, 2012 1278 bgonzale additional param to AreaComp ctor.
* Dec 18, 2012 1439 mpduff Redo subset name validation.
* Dec 10, 2012 1259 bsteffen Switch Data Delivery from LatLon to referenced envelopes.
* Feb 20, 2013 1589 mpduff Fix to allow saving custom areas.
*
* </pre>
*
@ -251,7 +252,6 @@ public class SpatialSubsetTab extends SubsetTab implements IDataSize {
return;
}
AreaXML area = getSaveInfo();
SubsetFileManager.getInstance()
@ -346,12 +346,12 @@ public class SpatialSubsetTab extends SubsetTab implements IDataSize {
*/
public AreaXML getSaveInfo() {
ReferencedEnvelope envelope = null;
if(useDataSetSize){
if (useDataSetSize) {
envelope = fullEnvelope;
} else {
envelope = areaComp.getEnvelope();
}
AreaXML area = new AreaXML();
if (envelope != null) {
@ -362,6 +362,8 @@ public class SpatialSubsetTab extends SubsetTab implements IDataSize {
if (areaComp.selectCombo.getEnabled()) {
area.setRegionName(name);
} else {
area.setRegionName(getRegionSaveText());
}
return area;
}