Merge tag 'OB_14.3.1-25m' into omaha_14.4.1
Conflicts: cave/com.raytheon.uf.viz.monitor.fog/src/com/raytheon/uf/viz/monitor/fog/ui/actions/FogAreaConfigAction.java cave/com.raytheon.uf.viz.monitor.fog/src/com/raytheon/uf/viz/monitor/fog/ui/dialogs/FogMonitoringAreaConfigDlg.java cave/com.raytheon.uf.viz.monitor.safeseas/src/com/raytheon/uf/viz/monitor/safeseas/ui/actions/SafeseasAreaConfigAction.java cave/com.raytheon.uf.viz.monitor.safeseas/src/com/raytheon/uf/viz/monitor/safeseas/ui/dialogs/SSMonitoringAreaConfigDlg.java cave/com.raytheon.uf.viz.monitor.snow/src/com/raytheon/uf/viz/monitor/snow/ui/actions/SnowAreaConfigAction.java cave/com.raytheon.uf.viz.monitor.snow/src/com/raytheon/uf/viz/monitor/snow/ui/dialogs/SnowMonitoringAreaConfigDlg.java cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/MonitoringAreaConfigDlg.java cave/com.raytheon.viz.core/src/com/raytheon/viz/core/rsc/AbstractSpatialEnabler.java cave/com.raytheon.viz.core/src/com/raytheon/viz/core/rsc/BestResResourceData.java edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FogMonitorConfigurationManager.java edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/MonitorConfigurationManager.java edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/SSMonitorConfigurationManager.java edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/SnowMonitorConfigurationManager.java Former-commit-id:ad4393bea3
[formerlyad4393bea3
[formerly 6bb7a7312a22a9585d2f5981d873751879082cb1]] Former-commit-id:c9e37bf440
Former-commit-id:fc35b7313d
This commit is contained in:
commit
f370a2f54e
18 changed files with 65 additions and 78 deletions
|
@ -40,6 +40,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Jul 14 2010 6567 zhao Launch AreaConfigDlg w/o monitor
|
||||
* Nov.27, 2012 1297 skorolev Cleanup code for non-blocking dialog.
|
||||
* May 08, 2014 3086 skorolev Added CloseCallback to dialog.
|
||||
* Sep 16, 2014 2757 skorolev Added test of dialog on dispose.
|
||||
* Sep 19, 2014 3220 skorolev Added check on dispose.
|
||||
*
|
||||
* </pre>
|
||||
|
|
|
@ -48,6 +48,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Apr 23, 2014 3054 skorolev Fixed issue with removing a new station from list.
|
||||
* Apr 28, 2014 3086 skorolev Updated getConfigManager.
|
||||
* Sep 04, 2014 3220 skorolev Added fireConfigUpdateEvent method. Updated handler.
|
||||
* Sep 19, 2014 2757 skorolev Updated handlers for dialog buttons.
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
|
@ -61,7 +62,7 @@ public class FogMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
private FogMonDispThreshDlg fogMonitorDlg;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Constructor.
|
||||
*
|
||||
* @param parent
|
||||
* @param title
|
||||
|
@ -79,7 +80,6 @@ public class FogMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
*/
|
||||
@Override
|
||||
protected void handleOkBtnSelection() {
|
||||
// Check for changes in the data
|
||||
if (dataIsChanged()) {
|
||||
int choice = showMessage(shell, SWT.OK | SWT.CANCEL,
|
||||
"Fog Monitor Confirm Changes",
|
||||
|
@ -89,13 +89,13 @@ public class FogMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
getValues();
|
||||
resetStatus();
|
||||
configMgr.saveConfigXml();
|
||||
configMgr.saveAdjancentAreaConfigXml();
|
||||
/**
|
||||
* DR#11279: re-initialize threshold manager and the monitor
|
||||
* using new monitor area configuration
|
||||
*/
|
||||
FogThresholdMgr.reInitialize();
|
||||
fireConfigUpdateEvent();
|
||||
|
||||
if ((!configMgr.getAddedZones().isEmpty())
|
||||
|| (!configMgr.getAddedStations().isEmpty())) {
|
||||
if (editDialog() == SWT.YES) {
|
||||
|
|
|
@ -40,6 +40,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* March 5, 2012 14413 zhao Launch AreaConfigDlg w/o monitor
|
||||
* Nov.27, 2012 1297 skorolev Cleanup code for non-blocking dialog.
|
||||
* May 08, 2014 3086 skorolev Added CloseCallback to dialog.
|
||||
* Sep 16, 2014 2757 skorolev Added test of dialog on dispose.
|
||||
* Sep 19, 2014 3220 skorolev Added check on dispose.
|
||||
*
|
||||
* </pre>
|
||||
|
|
|
@ -37,6 +37,22 @@ import com.raytheon.uf.viz.monitor.util.MonitorConfigConstants.SafeSeasMonitor;
|
|||
import com.raytheon.uf.viz.monitor.xml.AreaXML;
|
||||
import com.raytheon.uf.viz.monitor.xml.ThresholdsXML;
|
||||
|
||||
/**
|
||||
* SAFESEAS Monitor Meteo Table.
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Sep 17, 2014 2757 skorolev Removed unnecessary printouts.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author skorolev
|
||||
* @version 1.0
|
||||
*/
|
||||
public class SSMonitorMeteoTab extends TabItemComp implements IUpdateMonitorMeteo
|
||||
{
|
||||
private SSMonitorMeteoEditDlg monitorMeteoEditDlg;
|
||||
|
@ -191,9 +207,6 @@ public class SSMonitorMeteoTab extends TabItemComp implements IUpdateMonitorMete
|
|||
ssmmd.setWindSpeedR(sstm.getThresholdValue(duKey, threshKeyR, areaID, xmlKey));
|
||||
ssmmd.setWindSpeedY(sstm.getThresholdValue(duKey, threshKeyY, areaID, xmlKey));
|
||||
|
||||
System.out.println("=== " + sstm.getThresholdValue(duKey, threshKeyR, areaID, xmlKey));
|
||||
System.out.println("=== " + sstm.getThresholdValue(duKey, threshKeyY, areaID, xmlKey));
|
||||
|
||||
/*
|
||||
* Peak Wind
|
||||
*/
|
||||
|
|
|
@ -48,6 +48,8 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Apr 23, 2014 3054 skorolev Fixed issue with removing a new station from list.
|
||||
* Apr 28, 2014 3086 skorolev Updated getConfigManager.
|
||||
* Sep 04, 2014 3220 skorolev Added fireConfigUpdateEvent method. Updated handler.
|
||||
* Sep 19, 2014 2757 skorolev Updated handlers for dialog buttons.
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -70,15 +72,8 @@ public class SSMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
SafeSeasMonitor.getInstance();
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.ui.dialogs.MonitoringAreaConfigDlg#
|
||||
* handleOkBtnSelection()
|
||||
*/
|
||||
@Override
|
||||
protected void handleOkBtnSelection() {
|
||||
// Check for changes in the data
|
||||
if (dataIsChanged()) {
|
||||
int choice = showMessage(shell, SWT.OK | SWT.CANCEL,
|
||||
"SAFESEAS Monitor Confirm Changes",
|
||||
|
|
|
@ -40,6 +40,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* March 5, 2012 14413 zhao Launch AreaConfigDlg w/o monitor
|
||||
* Nov.27, 2012 1297 skorolev Cleanup code for non-blocking dialog.
|
||||
* May 08, 2014 3086 skorolev Added CloseCallback to dialog.
|
||||
* Sep 16, 2014 2757 skorolev Added test of dialog on dispose.
|
||||
* Sep 19, 2014 3220 skorolev Added check on dispose.
|
||||
*
|
||||
* </pre>
|
||||
|
|
|
@ -48,7 +48,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Apr 23, 2014 3054 skorolev Fixed issue with removing a new station from list.
|
||||
* Apr 28, 2014 3086 skorolev Updated snowConfigManager.
|
||||
* Sep 04, 2014 3220 skorolev Added fireConfigUpdateEvent method. Updated handler.
|
||||
*
|
||||
* Sep 19, 2014 2757 skorolev Updated handlers for dialog buttons.
|
||||
* </pre>
|
||||
*
|
||||
* @author mpduff
|
||||
|
@ -74,11 +74,10 @@ public class SnowMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.ui.dialogs.MonitoringAreaConfigDlg#
|
||||
* handleOkBtnSelection()
|
||||
* handleApplyBtnSelection()
|
||||
*/
|
||||
@Override
|
||||
protected void handleOkBtnSelection() {
|
||||
// Check for changes in the data\
|
||||
if (dataIsChanged()) {
|
||||
int choice = showMessage(shell, SWT.OK | SWT.CANCEL,
|
||||
"SNOW Monitor Confirm Changes",
|
||||
|
@ -90,7 +89,6 @@ public class SnowMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
configMgr.saveConfigXml();
|
||||
SnowThresholdMgr.reInitialize();
|
||||
fireConfigUpdateEvent();
|
||||
|
||||
if ((!configMgr.getAddedZones().isEmpty())
|
||||
|| (!configMgr.getAddedStations().isEmpty())) {
|
||||
if (editDialog() == SWT.YES) {
|
||||
|
@ -166,5 +164,4 @@ public class SnowMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -72,6 +72,8 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Apr 23, 2014 3054 skorolev Fixed issue with removing from list a new zone and a new station.
|
||||
* Apr 28, 2014 3086 skorolev Updated getConfigManager method.
|
||||
*
|
||||
* Sep 16, 2014 2757 skorolev Updated createBottomButtons method.
|
||||
* Sep 24, 2014 2757 skorolev Fixed problem with adding and removing zones.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -1064,14 +1066,20 @@ public abstract class MonitoringAreaConfigDlg extends CaveSWTDialog implements
|
|||
if (!configMgr.getAddedZones().contains(entry)) {
|
||||
configMgr.getAddedZones().add(entry);
|
||||
}
|
||||
configMgr.removeAdjArea(entry);
|
||||
} else { // Station mode
|
||||
maStations.add(entry);
|
||||
Collections.sort(maStations);
|
||||
monitorAreaList.setItems(maStations.toArray(new String[maStations
|
||||
.size()]));
|
||||
monitorAreaList.setSelection(maStations.indexOf(entry));
|
||||
handleMonitorAreaListSelection();
|
||||
additionalStns.remove(entry);
|
||||
String zone = associatedList.getItem(associatedList.getSelectionIndex());
|
||||
String stnId = entry.substring(0, entry.indexOf('#'));
|
||||
String stnType = entry.substring(entry.indexOf('#') + 1);
|
||||
configMgr.addStation(zone, stnId, stnType, configMgr
|
||||
.getAddedStations().contains(stnId));
|
||||
handleMonitorAreaListSelection();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1106,6 +1114,9 @@ public abstract class MonitoringAreaConfigDlg extends CaveSWTDialog implements
|
|||
if (configMgr.getAddedZones().contains(entry)) {
|
||||
configMgr.getAddedZones().remove(entry);
|
||||
}
|
||||
|
||||
configMgr.addAdjArea(entry,entry.charAt(2) == 'Z' ? ZoneType.MARITIME
|
||||
: ZoneType.REGULAR);
|
||||
} else { // Station mode
|
||||
additionalStns.add(entry);
|
||||
Collections.sort(additionalStns);
|
||||
|
@ -1204,7 +1215,7 @@ public abstract class MonitoringAreaConfigDlg extends CaveSWTDialog implements
|
|||
* Removes an associated zone or station.
|
||||
*/
|
||||
private void removeAssociated() {
|
||||
if (associatedList.getItemCount() == 0) {
|
||||
if (associatedList.getSelectionCount() == 0) {
|
||||
if (mode == Mode.Zone) {
|
||||
showMessage(shell, SWT.ERROR, "Select Needed",
|
||||
"You must select a station");
|
||||
|
@ -1280,7 +1291,7 @@ public abstract class MonitoringAreaConfigDlg extends CaveSWTDialog implements
|
|||
}
|
||||
|
||||
/**
|
||||
* Called when the cancel or "X" button is clicked.
|
||||
* Called when the cancel.
|
||||
*/
|
||||
private void closeWithoutSave() {
|
||||
resetStatus();
|
||||
|
@ -1297,7 +1308,8 @@ public abstract class MonitoringAreaConfigDlg extends CaveSWTDialog implements
|
|||
}
|
||||
|
||||
/**
|
||||
* Handles OK button.
|
||||
* Handles OK button. Save changes and close the dialog (or just close if
|
||||
* there are no changes).
|
||||
*/
|
||||
protected abstract void handleOkBtnSelection();
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ import com.raytheon.uf.common.util.FileUtil;
|
|||
* Sep 05, 2013 #2307 dgilling Use better PythonScript constructor.
|
||||
* Sep 11, 2013 #2033 dgilling Don't load loadConfig.py from
|
||||
* localization store.
|
||||
* Apr 02, 2014 #2729 randerso Added commonPython to path for LogStream
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -90,7 +89,6 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void loadConfiguration(String configName) {
|
||||
String commonPythonPath = GfePyIncludeUtil.getCommonPythonIncludePath();
|
||||
String configPath = GfePyIncludeUtil.getConfigIncludePath();
|
||||
String vtecPath = GfePyIncludeUtil.getVtecIncludePath();
|
||||
|
||||
|
@ -102,8 +100,8 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
new Path(FileUtil.join("python", "utility",
|
||||
"loadConfig.py")), null)).getPath());
|
||||
py = new PythonScript(scriptFile.getPath(),
|
||||
PyUtil.buildJepIncludePath(commonPythonPath, configPath,
|
||||
vtecPath), this.getClass().getClassLoader());
|
||||
PyUtil.buildJepIncludePath(configPath, vtecPath), this
|
||||
.getClass().getClassLoader());
|
||||
} catch (JepException e) {
|
||||
statusHandler.handle(Priority.CRITICAL,
|
||||
"Unable to load GFE config", e);
|
||||
|
@ -190,7 +188,7 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
public void firePropertyChangeEvent(String name, Object oldValue,
|
||||
Object newValue) {
|
||||
// The following criteria meets the Eclipse contract
|
||||
if ((oldValue == null) || oldValue.equals(newValue)) {
|
||||
if (oldValue == null || oldValue.equals(newValue)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -677,32 +675,32 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
|
||||
public boolean isBoolean(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof Boolean));
|
||||
return (obj != null && obj instanceof Boolean);
|
||||
}
|
||||
|
||||
public boolean isInt(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof Integer));
|
||||
return (obj != null && obj instanceof Integer);
|
||||
}
|
||||
|
||||
public boolean isFloat(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof Float));
|
||||
return (obj != null && obj instanceof Float);
|
||||
}
|
||||
|
||||
public boolean isDouble(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof Double));
|
||||
return (obj != null && obj instanceof Double);
|
||||
}
|
||||
|
||||
public boolean isLong(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof Long));
|
||||
return (obj != null && obj instanceof Long);
|
||||
}
|
||||
|
||||
public boolean isString(String name) {
|
||||
Object obj = selectedConfiguration.get(name);
|
||||
return ((obj != null) && (obj instanceof String));
|
||||
return (obj != null && obj instanceof String);
|
||||
}
|
||||
|
||||
public boolean isStringArray(String name) {
|
||||
|
@ -713,7 +711,7 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
result = true;
|
||||
} else if (obj instanceof List) {
|
||||
List<?> list = (List<?>) obj;
|
||||
if ((list.size() == 0) || (list.get(0) instanceof String)) {
|
||||
if (list.size() == 0 || list.get(0) instanceof String) {
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
|
@ -730,7 +728,7 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
result = true;
|
||||
} else if (obj instanceof List) {
|
||||
List<?> list = (List<?>) obj;
|
||||
if ((list.size() == 0) || (list.get(0) instanceof Float)) {
|
||||
if (list.size() == 0 || list.get(0) instanceof Float) {
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
|
@ -747,7 +745,7 @@ public class PythonPreferenceStore implements IPreferenceStore,
|
|||
result = true;
|
||||
} else if (obj instanceof List) {
|
||||
List<?> list = (List<?>) obj;
|
||||
if ((list.size() == 0) || (list.get(0) instanceof Integer)) {
|
||||
if (list.size() == 0 || list.get(0) instanceof Integer) {
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="37,35" constraintType="IN" />
|
||||
|
@ -130,7 +129,6 @@
|
|||
<properties isSystemResource="false" isBlinking="false" isMapLayer="false" isHoverOn="false" isVisible="true">
|
||||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData" productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="38,36" constraintType="IN" />
|
||||
|
@ -211,7 +209,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="153,94,19,20"
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="37,35" constraintType="IN" />
|
||||
|
@ -159,7 +158,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="38,36" constraintType="IN" />
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
<properties isSystemResource="false" isBlinking="false" isMapLayer="false" isHoverOn="false" isVisible="true">
|
||||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData" productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="37,36,57" constraintType="IN" />
|
||||
|
|
|
@ -104,7 +104,6 @@
|
|||
<properties isSystemResource="false" isBlinking="false" isMapLayer="false" isHoverOn="false" isVisible="true">
|
||||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData" productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="153,94,19,20" constraintType="IN" />
|
||||
|
|
|
@ -97,7 +97,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="37,35" constraintType="IN" />
|
||||
|
@ -167,7 +166,6 @@
|
|||
<properties isSystemResource="false" isBlinking="false" isMapLayer="false" isHoverOn="false" isVisible="true">
|
||||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData" productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="38,36" constraintType="IN" />
|
||||
|
|
|
@ -62,7 +62,6 @@
|
|||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData"
|
||||
productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="37,35" constraintType="IN" />
|
||||
|
@ -132,7 +131,6 @@
|
|||
<properties isSystemResource="false" isBlinking="false" isMapLayer="false" isHoverOn="false" isVisible="true">
|
||||
</properties>
|
||||
<resourceData xsi:type="bestResResourceData" productIdentifierKey="productCode" retrieveData="false">
|
||||
<enabler xsi:type="radarSpatialEnabler" />
|
||||
<metadataMap>
|
||||
<mapping key="productCode">
|
||||
<constraint constraintValue="38,36,57" constraintType="IN" />
|
||||
|
|
|
@ -22,50 +22,28 @@ package com.raytheon.viz.radar;
|
|||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
|
||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||
import com.raytheon.uf.common.dataplugin.radar.RadarRecord;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
|
||||
import com.raytheon.viz.core.rsc.AbstractSpatialEnabler;
|
||||
import com.raytheon.viz.radar.rsc.RadarResourceData;
|
||||
|
||||
/**
|
||||
* TODO Add Description
|
||||
* @deprecated do not use this class, it only exists for XML compatibility.
|
||||
*
|
||||
* <pre>
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 2, 2010 mnash Initial creation
|
||||
* Sep 26, 2014 3669 bsteffen Deprecate
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author mnash
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
@XmlAccessorType(XmlAccessType.NONE)
|
||||
public class RadarSpatialEnabler extends AbstractSpatialEnabler {
|
||||
public final class RadarSpatialEnabler extends AbstractSpatialEnabler {
|
||||
|
||||
private final String elevAngle = "primaryElevationAngle";
|
||||
/* Empty due to deprecation */
|
||||
|
||||
public RadarSpatialEnabler() {
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.core.rsc.AbstractSpatialEnabler#enable(com.raytheon.
|
||||
* uf.common.dataplugin.PluginDataObject,
|
||||
* com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData)
|
||||
*/
|
||||
@Override
|
||||
public void enable(PluginDataObject d, AbstractRequestableResourceData arrd) {
|
||||
if (arrd instanceof RadarResourceData && d instanceof RadarRecord) {
|
||||
RadarRecord rr = (RadarRecord) d;
|
||||
RadarResourceData rrd = (RadarResourceData) arrd;
|
||||
rr.setAddSpatial(!rrd.isLatest());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ import com.raytheon.uf.viz.core.requests.ThriftClient;
|
|||
import com.raytheon.uf.viz.personalities.cave.workbench.VizWorkbenchAdvisor;
|
||||
|
||||
/**
|
||||
* AWIPS {@link VizWorkbenchAdvisor} that reqeusts menu creation service to run
|
||||
* AWIPS {@link VizWorkbenchAdvisor} that requests menu creation service to run
|
||||
* before discovering dynamic menus
|
||||
*
|
||||
* <pre>
|
||||
|
@ -54,6 +54,7 @@ import com.raytheon.uf.viz.personalities.cave.workbench.VizWorkbenchAdvisor;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 20, 2013 mschenke Initial creation
|
||||
* Oct 01, 2014 3679 njensen Fix propertyChange() for logPerformance
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -81,7 +82,8 @@ public class AWIPSWorkbenchAdvisor extends VizWorkbenchAdvisor {
|
|||
public void propertyChange(PropertyChangeEvent event) {
|
||||
if (PreferenceConstants.P_LOG_PERF.equals(event
|
||||
.getProperty())) {
|
||||
Boolean log = (Boolean) event.getNewValue();
|
||||
Boolean log = Boolean.valueOf(event.getNewValue()
|
||||
.toString());
|
||||
if (log != logPeformance) {
|
||||
toggleLogging();
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ public class FSSObsMonitorConfigurationManager implements
|
|||
* @param filename
|
||||
* adjacentAreaConfig.xml
|
||||
*/
|
||||
protected void saveAdjacentAreaConfigXml() {
|
||||
public void saveAdjacentAreaConfigXml() {
|
||||
// Save the xml object to disk
|
||||
IPathManager pm = PathManagerFactory.getPathManager();
|
||||
LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,
|
||||
|
|
Loading…
Add table
Reference in a new issue