Issue #2143 - Fix various issues with SCAN/DMD/TVS
Change-Id: Ice9a0f13881c31ca1d51f2f2158f74caa064f1f8 Former-commit-id:640a154647
[formerlyc871d6a1cd
[formerly 0d5a35fcaac31c594ae7e5abda889e75a772c352]] Former-commit-id:c871d6a1cd
Former-commit-id:e31a6c3426
This commit is contained in:
parent
6c7c5a5b4b
commit
71d725ae07
17 changed files with 683 additions and 473 deletions
|
@ -114,6 +114,7 @@ import com.vividsolutions.jts.io.WKBReader;
|
|||
* Apr 26, 2013 1926 njensen Optimized getAvailableUris()
|
||||
* Jul 24, 2013 2218 mpduff Improved error handling, optimizations
|
||||
* Jul 30, 2013 2143 skorolev Changes for non-blocking dialogs.
|
||||
* Aug 15, 2013 2143 mpduff Fixed bug in nullifyMonitor()
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
|
@ -347,14 +348,14 @@ public class ScanMonitor extends ResourceMonitor implements IScanDialogListener
|
|||
@Override
|
||||
public void nullifyMonitor(String icao) {
|
||||
|
||||
if (cellDialogs.get(icao) != null) {
|
||||
if (cellDialogs.get(icao) == null) {
|
||||
monitor.removeMonitorListener(cellDialogs.get(icao));
|
||||
monitor.cellData.remove(icao);
|
||||
monitor.mdData.remove(icao);
|
||||
monitor.tvsData.remove(icao);
|
||||
cellDialogs.remove(icao);
|
||||
}
|
||||
if (dmdDialogs.get(icao) != null) {
|
||||
if (dmdDialogs.get(icao) == null) {
|
||||
monitor.removeMonitorListener(dmdDialogs.get(icao));
|
||||
monitor.dmdData.remove(icao);
|
||||
dmdDialogs.remove(icao);
|
||||
|
@ -754,7 +755,8 @@ public class ScanMonitor extends ResourceMonitor implements IScanDialogListener
|
|||
if (cellDialogs.isEmpty()) {
|
||||
getScanConfig().reload(ScanTables.CELL);
|
||||
}
|
||||
if (cellDialogs.get(icao) == null||cellDialogs.get(icao).isDisposed()) {
|
||||
if (cellDialogs.get(icao) == null
|
||||
|| cellDialogs.get(icao).isDisposed()) {
|
||||
SCANCellTableDlg cellDialog = new SCANCellTableDlg(shell, icao,
|
||||
new SCANTableData(ScanTables.CELL));
|
||||
cellDialogs.put(icao, cellDialog);
|
||||
|
@ -767,7 +769,8 @@ public class ScanMonitor extends ResourceMonitor implements IScanDialogListener
|
|||
if (dmdDialogs.isEmpty()) {
|
||||
getScanConfig().reload(ScanTables.DMD);
|
||||
}
|
||||
if (dmdDialogs.get(icao) == null||dmdDialogs.get(icao).isDisposed()) {
|
||||
if (dmdDialogs.get(icao) == null
|
||||
|| dmdDialogs.get(icao).isDisposed()) {
|
||||
SCANDmdTableDlg dmdDialog = new SCANDmdTableDlg(shell, icao,
|
||||
new SCANTableData(ScanTables.DMD));
|
||||
dmdDialogs.put(icao, dmdDialog);
|
||||
|
@ -780,7 +783,8 @@ public class ScanMonitor extends ResourceMonitor implements IScanDialogListener
|
|||
if (mesoDialogs.isEmpty()) {
|
||||
getScanConfig().reload(ScanTables.MESO);
|
||||
}
|
||||
if (mesoDialogs.get(icao) == null || mesoDialogs.get(icao).isDisposed()) {
|
||||
if (mesoDialogs.get(icao) == null
|
||||
|| mesoDialogs.get(icao).isDisposed()) {
|
||||
SCANMesoTableDlg mesoDialog = new SCANMesoTableDlg(shell, icao,
|
||||
new SCANTableData(ScanTables.MESO));
|
||||
mesoDialogs.put(icao, mesoDialog);
|
||||
|
@ -794,7 +798,8 @@ public class ScanMonitor extends ResourceMonitor implements IScanDialogListener
|
|||
if (tvsDialogs.isEmpty()) {
|
||||
getScanConfig().reload(ScanTables.TVS);
|
||||
}
|
||||
if (tvsDialogs.get(icao) == null||tvsDialogs.get(icao).isDisposed()) {
|
||||
if (tvsDialogs.get(icao) == null
|
||||
|| tvsDialogs.get(icao).isDisposed()) {
|
||||
SCANTvsTableDlg tvsDialog = new SCANTvsTableDlg(shell, icao,
|
||||
new SCANTableData(ScanTables.TVS));
|
||||
tvsDialogs.put(icao, tvsDialog);
|
||||
|
|
|
@ -39,7 +39,6 @@ import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
|||
import com.raytheon.uf.common.monitor.scan.xml.SCANAttributesXML;
|
||||
import com.raytheon.uf.common.monitor.scan.xml.SCANConfigDmdXML;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* This class displays the DMD Display Filter Control dialog.
|
||||
|
@ -51,7 +50,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 12, 2009 3039 lvenable Initial creation.
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialog.
|
||||
*
|
||||
* Aug 15, 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -104,7 +103,7 @@ public class DmdDisplayFilterDlg extends CaveSWTDialog implements
|
|||
* Callback that is called when changes are made.
|
||||
*/
|
||||
public DmdDisplayFilterDlg(Shell parentShell, IDisplayFilterUpdate cb) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("DMD Display Filter Control");
|
||||
|
||||
displayFilterUpdateCB = cb;
|
||||
|
|
|
@ -38,10 +38,9 @@ import org.eclipse.swt.widgets.Shell;
|
|||
import org.eclipse.swt.widgets.Text;
|
||||
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfig;
|
||||
import com.raytheon.uf.common.monitor.scan.config.TrendSetConfigMgr;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.uf.common.monitor.scan.config.TrendSetConfigMgr;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -54,7 +53,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 3, 2009 #3039 lvenable Initial creation
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialog.
|
||||
*
|
||||
* Aug 15, 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -116,12 +115,12 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Attribute button width.
|
||||
*/
|
||||
private int attrBtnWidth = 100;
|
||||
private final int attrBtnWidth = 100;
|
||||
|
||||
/**
|
||||
* SCAN table identifier.
|
||||
*/
|
||||
private ScanTables scanTable;
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/**
|
||||
* Flag indicating if the OK button was selected.
|
||||
|
@ -137,13 +136,15 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
* SCAN table identifier.
|
||||
*/
|
||||
public EditCreateTrendDlg(Shell parentShell, ScanTables scanTable) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("Edit/Create Trend Sets");
|
||||
|
||||
this.scanTable = scanTable;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -155,8 +156,12 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -188,8 +193,7 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
private void createAttributeControls() {
|
||||
Composite attrComp = new Composite(shell, SWT.NONE);
|
||||
attrComp.setLayout(new GridLayout(3, false));
|
||||
attrComp
|
||||
.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, true, false));
|
||||
attrComp.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, true, false));
|
||||
|
||||
/*
|
||||
* Create the top labels.
|
||||
|
@ -425,8 +429,7 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
if (selectedAttrList.getItemCount() >= 5) {
|
||||
MessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);
|
||||
mb.setText("Attribute Add");
|
||||
mb
|
||||
.setMessage("There can only be a maximum of 5 attributes in a trend set.");
|
||||
mb.setMessage("There can only be a maximum of 5 attributes in a trend set.");
|
||||
mb.open();
|
||||
return;
|
||||
}
|
||||
|
@ -504,8 +507,7 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
if (availTrendsList.indexOf(newTrendName) >= 0) {
|
||||
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
|
||||
mb.setText("Entry Error");
|
||||
mb
|
||||
.setMessage("That trend name already exists. Please enter a new one.");
|
||||
mb.setMessage("That trend name already exists. Please enter a new one.");
|
||||
mb.open();
|
||||
|
||||
newTrendTF.setFocus();
|
||||
|
@ -528,8 +530,8 @@ public class EditCreateTrendDlg extends CaveSWTDialog implements
|
|||
String selectedTrend = availTrendsList.getItem(availTrendsList
|
||||
.getSelectionIndex());
|
||||
|
||||
SCANConfig.getInstance().getTrendConfigMgr(scanTable).removeTrendSet(
|
||||
selectedTrend);
|
||||
SCANConfig.getInstance().getTrendConfigMgr(scanTable)
|
||||
.removeTrendSet(selectedTrend);
|
||||
|
||||
availTrendsList.remove(selectedTrend);
|
||||
|
||||
|
|
|
@ -38,14 +38,13 @@ import org.eclipse.swt.widgets.Text;
|
|||
|
||||
import com.raytheon.uf.common.localization.IPathManager;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext;
|
||||
import com.raytheon.uf.common.localization.LocalizationFile;
|
||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
|
||||
import com.raytheon.uf.common.localization.LocalizationFile;
|
||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfig;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* Open and Save Dialog for configuration files.
|
||||
|
@ -57,7 +56,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
*
|
||||
* 15 Aug 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author
|
||||
|
@ -69,26 +68,35 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
OPEN, SAVE_AS
|
||||
};
|
||||
|
||||
/* Type of dialog */
|
||||
private DialogType dialogType;
|
||||
/* Font type */
|
||||
/** Type of dialog */
|
||||
private final DialogType dialogType;
|
||||
|
||||
/** Font type */
|
||||
private Font controlFont;
|
||||
/* File list control */
|
||||
|
||||
/** File list control */
|
||||
private List cfgFileList;
|
||||
/* LocalizationFile */
|
||||
|
||||
/** LocalizationFile */
|
||||
private LocalizationFile selectedFile;
|
||||
/* Localization Files */
|
||||
|
||||
/** Localization Files */
|
||||
private LocalizationFile[] locFiles;
|
||||
/* Tree map of localization files */
|
||||
|
||||
/** Tree map of localization files */
|
||||
private TreeMap<String, LocalizationFile> locFileMap;
|
||||
/* Name of new file */
|
||||
|
||||
/** Name of new file */
|
||||
private Text newFileNameTF;
|
||||
/* Action button */
|
||||
|
||||
/** Action button */
|
||||
private Button actionBtn;
|
||||
/* SCAN Table */
|
||||
private ScanTables scanTable;
|
||||
/* SCAN configuration */
|
||||
private SCANConfig scanCfg;
|
||||
|
||||
/** SCAN Table */
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/** SCAN configuration */
|
||||
private final SCANConfig scanCfg;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -98,7 +106,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
* @param scanTable
|
||||
*/
|
||||
public LoadSaveConfigDlg(Shell parent, DialogType type, ScanTables scanTable) {
|
||||
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
if (type == DialogType.OPEN) {
|
||||
setText("Load " + scanTable.name() + " Configuration");
|
||||
} else {
|
||||
|
@ -110,7 +118,9 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
scanCfg = SCANConfig.getInstance();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -123,7 +133,9 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#disposed()
|
||||
*/
|
||||
@Override
|
||||
|
@ -132,8 +144,12 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
setReturnValue(selectedFile);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -219,6 +235,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
if (dialogType == DialogType.OPEN) {
|
||||
actionBtn.setText("Open");
|
||||
actionBtn.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
openAction();
|
||||
}
|
||||
|
@ -226,6 +243,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
} else if (dialogType == DialogType.SAVE_AS) {
|
||||
actionBtn.setText("Save");
|
||||
actionBtn.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
if (validateFileName() == true) {
|
||||
saveAction();
|
||||
|
@ -240,6 +258,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
cancelBtn.setText("Cancel");
|
||||
cancelBtn.setLayoutData(gd);
|
||||
cancelBtn.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
selectedFile = null;
|
||||
setReturnValue(null);
|
||||
|
@ -295,8 +314,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
if (strBuf.toString().matches("[A-Za-z0-9._-]+") == false) {
|
||||
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
|
||||
mb.setText("Warning");
|
||||
mb
|
||||
.setMessage("File name contains invalid charaters. The file name can only\n"
|
||||
mb.setMessage("File name contains invalid charaters. The file name can only\n"
|
||||
+ "contain A-Z, a-z, 0-9, or periods, underscores, or dashes.");
|
||||
mb.open();
|
||||
return false;
|
||||
|
@ -312,8 +330,7 @@ public class LoadSaveConfigDlg extends CaveSWTDialog {
|
|||
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.YES
|
||||
| SWT.NO);
|
||||
mb.setText("Warning");
|
||||
mb
|
||||
.setMessage("File name already exists. Do you wish to overwrite\n"
|
||||
mb.setMessage("File name already exists. Do you wish to overwrite\n"
|
||||
+ "the existing file?.");
|
||||
int result = mb.open();
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
*
|
||||
* 15 Aug 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author
|
||||
|
@ -65,37 +65,52 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
public class SCANAlarmThreshDlg extends CaveSWTDialog implements
|
||||
ICommonDialogAction {
|
||||
|
||||
/* SCAN Table */
|
||||
private ScanTables scanTable;
|
||||
/* SCAN Configuration */
|
||||
/** SCAN Table */
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/** SCAN Configuration */
|
||||
private SCANConfig scanCfg;
|
||||
/* Attribute combo control */
|
||||
|
||||
/** Attribute combo control */
|
||||
private Combo attributeCbo;
|
||||
/* Disable All Alarms Checkbox */
|
||||
|
||||
/** Disable All Alarms Checkbox */
|
||||
private Button disableAllAlarmChk;
|
||||
/* Absolute Value Rdo */
|
||||
|
||||
/** Absolute Value Rdo */
|
||||
private Button absValueRdo;
|
||||
/* Rate Of Change Rdo */
|
||||
|
||||
/** Rate Of Change Rdo */
|
||||
private Button rateOfChangeRdo;
|
||||
/* Selected Choice Label */
|
||||
|
||||
/** Selected Choice Label */
|
||||
private Label selectedChoiceLbl;
|
||||
/* Time Frame Value */
|
||||
|
||||
/** Time Frame Value */
|
||||
private Text valueTF;
|
||||
/* Unit Label */
|
||||
|
||||
/** Unit Label */
|
||||
private Label unitsLbl;
|
||||
/* "Absolute Value" */
|
||||
|
||||
/** "Absolute Value" */
|
||||
private final String absValStr = "Absolute Value";
|
||||
/* "Rate of Change" */
|
||||
|
||||
/** "Rate of Change" */
|
||||
private final String rocStr = "Rate of Change";
|
||||
/* Bell Checkbox */
|
||||
|
||||
/** Bell Checkbox */
|
||||
private Button bellChk;
|
||||
/* SCAN Alarm Alert Manager */
|
||||
private SCANAlarmAlertManager mgr;
|
||||
/* Alarm Type */
|
||||
|
||||
/** SCAN Alarm Alert Manager */
|
||||
private final SCANAlarmAlertManager mgr;
|
||||
|
||||
/** Alarm Type */
|
||||
private AlarmType type;
|
||||
/* prevAttr */
|
||||
|
||||
/** prevAttr */
|
||||
private String prevAttr;
|
||||
/* Site */
|
||||
|
||||
/** Site */
|
||||
private String site = null;
|
||||
|
||||
/**
|
||||
|
@ -107,7 +122,7 @@ public class SCANAlarmThreshDlg extends CaveSWTDialog implements
|
|||
*/
|
||||
public SCANAlarmThreshDlg(String site, Shell parentShell,
|
||||
ScanTables scanTable) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
if (scanTable == ScanTables.CELL) {
|
||||
setText("CELL Alarm Thresh");
|
||||
} else {
|
||||
|
@ -119,7 +134,9 @@ public class SCANAlarmThreshDlg extends CaveSWTDialog implements
|
|||
this.site = site;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -131,8 +148,12 @@ public class SCANAlarmThreshDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -444,8 +465,11 @@ public class SCANAlarmThreshDlg extends CaveSWTDialog implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#closeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#
|
||||
* closeDialog()
|
||||
*/
|
||||
@Override
|
||||
public void closeDialog() {
|
||||
|
|
|
@ -42,20 +42,23 @@ import com.raytheon.uf.common.localization.PathManagerFactory;
|
|||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.uf.common.monitor.scan.xml.ScanAlarmXML;
|
||||
import com.raytheon.uf.common.serialization.SerializationUtil;
|
||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||
import com.raytheon.uf.common.status.UFStatus;
|
||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
*
|
||||
* Dialog to change the time limits for CELL, DMD, MESO, and/or TVS.
|
||||
*
|
||||
* <pre>
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 22, 2010 lvenable Initial creation
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
*
|
||||
* Aug 15, 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -63,11 +66,13 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
*/
|
||||
public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
||||
ICommonDialogAction {
|
||||
private final IUFStatusHandler statusHandler = UFStatus
|
||||
.getHandler(SCANAlarmTimeLimitDlg.class);
|
||||
|
||||
/**
|
||||
* Scan Tables
|
||||
*/
|
||||
private ScanTables scanTable;
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/**
|
||||
* Cell Spinner
|
||||
|
@ -92,12 +97,12 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Label Width
|
||||
*/
|
||||
private int labelWidth = 80;
|
||||
private final int labelWidth = 80;
|
||||
|
||||
/**
|
||||
* Width Spinner
|
||||
*/
|
||||
private int spinnerWidth = 70;
|
||||
private final int spinnerWidth = 70;
|
||||
|
||||
/**
|
||||
* SCAN Alarm XML
|
||||
|
@ -113,13 +118,15 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
*/
|
||||
public SCANAlarmTimeLimitDlg(Shell parentShell, ScanTables scanTable,
|
||||
String site) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("Alarm Time Limit for: " + site);
|
||||
|
||||
this.scanTable = scanTable;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -131,8 +138,12 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -229,8 +240,7 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
tvsMinLbl.setText("min");
|
||||
tvsMinLbl.setLayoutData(gd);
|
||||
|
||||
if (dataXML != null)
|
||||
{
|
||||
if (dataXML != null) {
|
||||
cellSpnr.setSelection(dataXML.getCellAlarmTime());
|
||||
mesoSpnr.setSelection(dataXML.getMesoAlarmTime());
|
||||
tvsSpnr.setSelection(dataXML.getTvsAlarmTime());
|
||||
|
@ -270,8 +280,7 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
dmdMinLbl.setText("min");
|
||||
dmdMinLbl.setLayoutData(gd);
|
||||
|
||||
if (dataXML != null)
|
||||
{
|
||||
if (dataXML != null) {
|
||||
dmdSpnr.setSelection(dataXML.getDmdAlarmTime());
|
||||
}
|
||||
}
|
||||
|
@ -312,8 +321,11 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
});
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#closeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#
|
||||
* closeDialog()
|
||||
*/
|
||||
@Override
|
||||
public void closeDialog() {
|
||||
|
@ -323,19 +335,18 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Read Alarm Data.
|
||||
*/
|
||||
private void readAlarmData()
|
||||
{
|
||||
try
|
||||
{
|
||||
private void readAlarmData() {
|
||||
try {
|
||||
dataXML = null;
|
||||
IPathManager pm = PathManagerFactory.getPathManager();
|
||||
String path = pm.getStaticFile(getFullPathAndFileName()).getAbsolutePath();
|
||||
String path = pm.getStaticFile(getFullPathAndFileName())
|
||||
.getAbsolutePath();
|
||||
|
||||
dataXML = (ScanAlarmXML) SerializationUtil.jaxbUnmarshalFromXmlFile(path);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("*** ScanAlarms.xml not available.");
|
||||
dataXML = SerializationUtil.jaxbUnmarshalFromXmlFile(
|
||||
ScanAlarmXML.class, path);
|
||||
} catch (Exception e) {
|
||||
statusHandler.handle(Priority.PROBLEM,
|
||||
"Scan Alarms not available (ScanAlarms.xml).", e);
|
||||
dataXML = null;
|
||||
}
|
||||
}
|
||||
|
@ -343,10 +354,8 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Save Alarm Data.
|
||||
*/
|
||||
private void saveAlarmData()
|
||||
{
|
||||
if (dataXML == null)
|
||||
{
|
||||
private void saveAlarmData() {
|
||||
if (dataXML == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -362,26 +371,20 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
IPathManager pm = PathManagerFactory.getPathManager();
|
||||
LocalizationContext context = pm.getContext(
|
||||
LocalizationType.COMMON_STATIC, LocalizationLevel.SITE);
|
||||
LocalizationFile locFile = pm.getLocalizationFile(context, getFullPathAndFileName());
|
||||
LocalizationFile locFile = pm.getLocalizationFile(context,
|
||||
getFullPathAndFileName());
|
||||
|
||||
if (locFile.getFile().getParentFile().exists() == false)
|
||||
{
|
||||
System.out.println("Creating new directory");
|
||||
|
||||
if (locFile.getFile().getParentFile().mkdirs() == false)
|
||||
{
|
||||
System.out.println("Could not create new directory...");
|
||||
}
|
||||
if (!locFile.getFile().getParentFile().exists()) {
|
||||
locFile.getFile().getParentFile().mkdirs();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
SerializationUtil.jaxbMarshalToXmlFile(dataXML, locFile.getFile().getAbsolutePath());
|
||||
try {
|
||||
SerializationUtil.jaxbMarshalToXmlFile(dataXML, locFile.getFile()
|
||||
.getAbsolutePath());
|
||||
locFile.save();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
} catch (Exception e) {
|
||||
statusHandler.handle(Priority.ERROR,
|
||||
"Error saving configuration file", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -390,8 +393,7 @@ public class SCANAlarmTimeLimitDlg extends CaveSWTDialog implements
|
|||
*
|
||||
* @return file name
|
||||
*/
|
||||
public String getFullPathAndFileName()
|
||||
{
|
||||
public String getFullPathAndFileName() {
|
||||
String fs = String.valueOf(File.separatorChar);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.eclipse.swt.widgets.Shell;
|
|||
import com.raytheon.uf.common.monitor.scan.config.SCANConfig;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* SCAN Attributes Dialog.
|
||||
|
@ -64,12 +63,12 @@ public class SCANAttributesDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Attribute Update Checkboxes.
|
||||
*/
|
||||
private IAttributeUpdate attributeUpdateCb;
|
||||
private final IAttributeUpdate attributeUpdateCb;
|
||||
|
||||
/**
|
||||
* SCAN Tables.
|
||||
*/
|
||||
private ScanTables scanTable;
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -80,14 +79,16 @@ public class SCANAttributesDlg extends CaveSWTDialog implements
|
|||
*/
|
||||
public SCANAttributesDlg(Shell parent, ScanTables scanTable,
|
||||
IAttributeUpdate attributeUpdateCb) {
|
||||
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("Attributes");
|
||||
|
||||
this.scanTable = scanTable;
|
||||
this.attributeUpdateCb = attributeUpdateCb;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -99,8 +100,12 @@ public class SCANAttributesDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -179,8 +184,11 @@ public class SCANAttributesDlg extends CaveSWTDialog implements
|
|||
attributeUpdateCb.attributeUpdates(selectedCols);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#closeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#
|
||||
* closeDialog()
|
||||
*/
|
||||
@Override
|
||||
public void closeDialog() {
|
||||
|
|
|
@ -41,7 +41,6 @@ import com.raytheon.uf.common.monitor.scan.config.SCANConfig;
|
|||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanThresholdColor;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* Displays the Color threshold dialog used by CELL, DMD, MESO, and TVS.
|
||||
|
@ -53,6 +52,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 2, 2009 #3039 lvenable Initial creation
|
||||
* 24 Jul 2013 #2143 skorolev Changes non-blocking dialogs.
|
||||
* Aug 15, 2013 #2143 mpduff Remove resize.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -129,14 +129,16 @@ public class SCANColorThreshDlg extends CaveSWTDialog implements
|
|||
*/
|
||||
public SCANColorThreshDlg(Shell parentShell, ScanTables scanTable,
|
||||
IThresholdUpdate thresholdCB) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText(scanTable.name() + " Color Threshold");
|
||||
|
||||
this.thresholdCB = thresholdCB;
|
||||
this.scanTable = scanTable;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -148,8 +150,12 @@ public class SCANColorThreshDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -310,8 +316,6 @@ public class SCANColorThreshDlg extends CaveSWTDialog implements
|
|||
String attrName = attributeCbo
|
||||
.getItem(attributeCbo.getSelectionIndex());
|
||||
|
||||
|
||||
|
||||
upperVal = textIsANumber(upperTF.getText());
|
||||
if (upperVal.isNaN() == true) {
|
||||
displayMessageDialog("Upper value is not a number.");
|
||||
|
@ -342,8 +346,7 @@ public class SCANColorThreshDlg extends CaveSWTDialog implements
|
|||
|
||||
Point pt = scanCfg.getMinMaxValues(scanTable, attrName);
|
||||
|
||||
if (pt != null)
|
||||
{
|
||||
if (pt != null) {
|
||||
|
||||
if (upperVal > pt.getY()) {
|
||||
displayMessageDialog("Upper value is greater than max allowed value: "
|
||||
|
|
|
@ -31,8 +31,6 @@ import org.eclipse.swt.graphics.Rectangle;
|
|||
import org.eclipse.swt.layout.GridData;
|
||||
import org.eclipse.swt.layout.GridLayout;
|
||||
import org.eclipse.swt.widgets.Canvas;
|
||||
import org.eclipse.swt.widgets.Dialog;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Layout;
|
||||
import org.eclipse.swt.widgets.Monitor;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
@ -51,6 +49,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
* 15 Aug 2013 2143 mpduff Use the existing display.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -69,17 +68,15 @@ public class SCANSplash extends CaveSWTDialog {
|
|||
/**
|
||||
* Canvas width.
|
||||
*/
|
||||
private int canvasWidth = 300;
|
||||
private final int canvasWidth = 300;
|
||||
|
||||
/**
|
||||
* Canvas height.
|
||||
*/
|
||||
private int canvasHeight = 200;
|
||||
private final int canvasHeight = 200;
|
||||
|
||||
private Image loadImage = null;
|
||||
|
||||
private Display display;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -102,12 +99,11 @@ public class SCANSplash extends CaveSWTDialog {
|
|||
@Override
|
||||
protected void initializeComponents(Shell parentShell) {
|
||||
// Initialize all of the controls and layouts
|
||||
display = shell.getDisplay();
|
||||
centerOnScreen();
|
||||
textFont = new Font(display, "Monospace", 50, SWT.BOLD);
|
||||
textFont = new Font(getDisplay(), "Monospace", 50, SWT.BOLD);
|
||||
String imageName = loadImage();
|
||||
if (imageName != null) {
|
||||
loadImage = new Image(display, imageName);
|
||||
loadImage = new Image(getDisplay(), imageName);
|
||||
}
|
||||
|
||||
createCanvas();
|
||||
|
@ -123,6 +119,7 @@ public class SCANSplash extends CaveSWTDialog {
|
|||
|
||||
canvas.setLayoutData(gd);
|
||||
canvas.addPaintListener(new PaintListener() {
|
||||
@Override
|
||||
public void paintControl(PaintEvent e) {
|
||||
drawCanvas(e.gc);
|
||||
}
|
||||
|
@ -136,11 +133,11 @@ public class SCANSplash extends CaveSWTDialog {
|
|||
if (loadImage != null) {
|
||||
gc.drawImage(loadImage, 0, 0);
|
||||
} else {
|
||||
gc.setBackground(display.getSystemColor(SWT.COLOR_BLUE));
|
||||
gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_BLUE));
|
||||
gc.fillRectangle(0, 0, canvasWidth, canvasHeight);
|
||||
}
|
||||
|
||||
gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE));
|
||||
gc.setForeground(getDisplay().getSystemColor(SWT.COLOR_WHITE));
|
||||
gc.setLineWidth(3);
|
||||
gc.drawRectangle(1, 1, canvasWidth - 3, canvasHeight - 3);
|
||||
}
|
||||
|
|
|
@ -37,10 +37,9 @@ import org.eclipse.swt.widgets.Shell;
|
|||
import org.eclipse.swt.widgets.Spinner;
|
||||
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfig;
|
||||
import com.raytheon.uf.common.monitor.scan.config.UnwarnedConfig;
|
||||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanColors;
|
||||
import com.raytheon.uf.common.monitor.scan.config.UnwarnedConfig;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -53,7 +52,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Oct 25, 2009 lvenable Initial creation
|
||||
* 24 Jul 2013 #2143 skorolev Changes non-blocking dialogs.
|
||||
*
|
||||
* Aug 15, 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -142,7 +141,7 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
/**
|
||||
* Spinner width.
|
||||
*/
|
||||
private int spinnerWidth = 60;
|
||||
private final int spinnerWidth = 60;
|
||||
|
||||
private StringBuilder infoText;
|
||||
|
||||
|
@ -153,11 +152,13 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
* Parent shell.
|
||||
*/
|
||||
public SCANUnwarnedDlg(Shell parentShell) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("Unwarned Alarm Control");
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -169,7 +170,9 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#disposed()
|
||||
*/
|
||||
@Override
|
||||
|
@ -177,8 +180,12 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
topLabelFont.dispose();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -561,34 +568,21 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
|
||||
infoText.append("SCAN identifies those storm cells that contain a\n");
|
||||
infoText.append("Tornado Vortex Signature (TVS) and to some extent\n");
|
||||
infoText
|
||||
.append("severe weather (based on various storm cell parameters).\n");
|
||||
infoText
|
||||
.append("Now SCAN can determine which storm cells currently have\n");
|
||||
infoText.append("severe weather (based on various storm cell parameters).\n");
|
||||
infoText.append("Now SCAN can determine which storm cells currently have\n");
|
||||
infoText.append("an active TOR or SVR warning and which do not. For\n");
|
||||
infoText
|
||||
.append("those that do not, the SCAN user can set various storm\n");
|
||||
infoText
|
||||
.append("cell parameter thresholds (see below). If these thresholds\n");
|
||||
infoText
|
||||
.append("are met or exceeded and no TOR and/or SVR is in effect\n");
|
||||
infoText
|
||||
.append("in the polygon where the cell is located, an Unwarned Storm\n");
|
||||
infoText.append("those that do not, the SCAN user can set various storm\n");
|
||||
infoText.append("cell parameter thresholds (see below). If these thresholds\n");
|
||||
infoText.append("are met or exceeded and no TOR and/or SVR is in effect\n");
|
||||
infoText.append("in the polygon where the cell is located, an Unwarned Storm\n");
|
||||
infoText.append("Alarm will be issued.\n\n");
|
||||
infoText
|
||||
.append("To turn this functionality on for TOR and/or SVR warnings,\n");
|
||||
infoText
|
||||
.append("simply click the toggle below on and then check and specify\n");
|
||||
infoText
|
||||
.append("the thresholds you would like be used in order to issue a TOR\n");
|
||||
infoText
|
||||
.append("and/or SVR Unwarned Storm Cell Alarm. You will know that\n");
|
||||
infoText
|
||||
.append("an Unwarned Storm Alarm has been issued when the storm\n");
|
||||
infoText
|
||||
.append("cell identifier in the Storm Cell Table changes color to\n");
|
||||
infoText
|
||||
.append("magenta for TOR warnings and yellow for SVR warnings.");
|
||||
infoText.append("To turn this functionality on for TOR and/or SVR warnings,\n");
|
||||
infoText.append("simply click the toggle below on and then check and specify\n");
|
||||
infoText.append("the thresholds you would like be used in order to issue a TOR\n");
|
||||
infoText.append("and/or SVR Unwarned Storm Cell Alarm. You will know that\n");
|
||||
infoText.append("an Unwarned Storm Alarm has been issued when the storm\n");
|
||||
infoText.append("cell identifier in the Storm Cell Table changes color to\n");
|
||||
infoText.append("magenta for TOR warnings and yellow for SVR warnings.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -621,8 +615,11 @@ public class SCANUnwarnedDlg extends CaveSWTDialog implements
|
|||
});
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#closeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#
|
||||
* closeDialog()
|
||||
*/
|
||||
@Override
|
||||
public void closeDialog() {
|
||||
|
|
|
@ -44,7 +44,6 @@ import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
|||
import com.raytheon.uf.common.monitor.scan.xml.SCANAttributesXML;
|
||||
import com.raytheon.uf.common.monitor.scan.xml.SCANConfigCellXML;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* Storm Cell ID Display Dialog
|
||||
|
@ -56,7 +55,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
*
|
||||
* 15 Aug 2013 2143 mpduff Remove resize.
|
||||
* </pre>
|
||||
*
|
||||
* @author
|
||||
|
@ -199,13 +198,15 @@ public class StormCellIdDisplayDlg extends CaveSWTDialog implements
|
|||
* @param cb
|
||||
*/
|
||||
public StormCellIdDisplayDlg(Shell parentShell, IStormCellDisplayUpdate cb) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("Storm Cell Identification Display Parameters");
|
||||
|
||||
stormCellCB = cb;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -217,7 +218,9 @@ public class StormCellIdDisplayDlg extends CaveSWTDialog implements
|
|||
return mainLayout;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#disposed()
|
||||
*/
|
||||
@Override
|
||||
|
@ -226,8 +229,12 @@ public class StormCellIdDisplayDlg extends CaveSWTDialog implements
|
|||
smLabelFont.dispose();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -844,8 +851,11 @@ public class StormCellIdDisplayDlg extends CaveSWTDialog implements
|
|||
stormCellCB.stormCellUpdated();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#closeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ICommonDialogAction#
|
||||
* closeDialog()
|
||||
*/
|
||||
@Override
|
||||
public void closeDialog() {
|
||||
|
|
|
@ -42,7 +42,6 @@ import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums;
|
|||
import com.raytheon.uf.common.monitor.scan.config.SCANConfigEnums.ScanTables;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||
import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
||||
|
||||
/**
|
||||
* Time-Height Graph dialog.
|
||||
|
@ -56,6 +55,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase.CAVE;
|
|||
* Dec 23, 2011 13608 mgamazay Updated populateIdentCombo so the drop down menu
|
||||
* shows the current feature ident instead of being blank.
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
* Aug 15, 2013 2143 mpduff Remove resize.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -122,17 +122,17 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
/**
|
||||
* Scan table identifier.
|
||||
*/
|
||||
private ScanTables scanTable;
|
||||
private final ScanTables scanTable;
|
||||
|
||||
/**
|
||||
* Time-Height graph data.
|
||||
*/
|
||||
private TreeMap<Long, DMDTableDataRow> graphData;
|
||||
private final TreeMap<Long, DMDTableDataRow> graphData;
|
||||
|
||||
/**
|
||||
* Callback to request time height data.
|
||||
*/
|
||||
private IRequestTimeHeightData timeHeightCB;
|
||||
private final IRequestTimeHeightData timeHeightCB;
|
||||
|
||||
/**
|
||||
* List of attributes that can display time-height data.
|
||||
|
@ -159,9 +159,11 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
* @param timeHeightCB
|
||||
* Callback to request time height data.
|
||||
*/
|
||||
public TimeHeightDlg(Shell parentShell, ScanTables scanTable, String ident, String attrName, String[] identArray,
|
||||
TreeMap<Long, DMDTableDataRow> graphData, IRequestTimeHeightData timeHeightCB) {
|
||||
super(parentShell, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK);
|
||||
public TimeHeightDlg(Shell parentShell, ScanTables scanTable, String ident,
|
||||
String attrName, String[] identArray,
|
||||
TreeMap<Long, DMDTableDataRow> graphData,
|
||||
IRequestTimeHeightData timeHeightCB) {
|
||||
super(parentShell, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
|
||||
setText("DMD Time-Height Trend");
|
||||
|
||||
this.scanTable = scanTable;
|
||||
|
@ -172,7 +174,9 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
this.timeHeightCB = timeHeightCB;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
|
||||
*/
|
||||
@Override
|
||||
|
@ -180,8 +184,12 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
return new GridLayout(1, false);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org.eclipse.swt.widgets.Shell)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
|
||||
* .eclipse.swt.widgets.Shell)
|
||||
*/
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
|
@ -325,7 +333,8 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
attrList = new ArrayList<String>();
|
||||
|
||||
SCANConfig scanCfg = SCANConfig.getInstance();
|
||||
LinkedHashMap<String, String> trendAttrNames = scanCfg.getTimeHeightAttributeUnits(scanTable);
|
||||
LinkedHashMap<String, String> trendAttrNames = scanCfg
|
||||
.getTimeHeightAttributeUnits(scanTable);
|
||||
|
||||
for (String name : trendAttrNames.keySet()) {
|
||||
attrList.add(name);
|
||||
|
@ -343,9 +352,11 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
ident = identCbo.getItem(identCbo.getSelectionIndex());
|
||||
attrName = attrList.get(attrCbo.getSelectionIndex());
|
||||
|
||||
SCANConfigEnums.DMDTable tableCol = SCANConfigEnums.DMDTable.valueOf(attrName.toUpperCase());
|
||||
SCANConfigEnums.DMDTable tableCol = SCANConfigEnums.DMDTable
|
||||
.valueOf(attrName.toUpperCase());
|
||||
|
||||
TreeMap<Long, DMDTableDataRow> data = timeHeightCB.requestTimeHeightData(tableCol, ident);
|
||||
TreeMap<Long, DMDTableDataRow> data = timeHeightCB
|
||||
.requestTimeHeightData(tableCol, ident);
|
||||
|
||||
this.setGraphData(data);
|
||||
}
|
||||
|
@ -389,7 +400,8 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
* @return The attribute (table column).
|
||||
*/
|
||||
public SCANConfigEnums.DMDTable getTableColumn() {
|
||||
SCANConfigEnums.DMDTable tableCol = SCANConfigEnums.DMDTable.valueOf(attrName.toUpperCase());
|
||||
SCANConfigEnums.DMDTable tableCol = SCANConfigEnums.DMDTable
|
||||
.valueOf(attrName.toUpperCase());
|
||||
return tableCol;
|
||||
}
|
||||
|
||||
|
@ -403,7 +415,8 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
* @param attribute
|
||||
* Selected attribute (table column).
|
||||
*/
|
||||
public void setGraphData(TreeMap<Long, DMDTableDataRow> data, String ident, String attribute) {
|
||||
public void setGraphData(TreeMap<Long, DMDTableDataRow> data, String ident,
|
||||
String attribute) {
|
||||
this.ident = ident;
|
||||
identCbo.select(identCbo.indexOf(this.ident));
|
||||
|
||||
|
@ -423,8 +436,7 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
}
|
||||
|
||||
/**
|
||||
* Display a Close Dialog message when cell
|
||||
* is no longer valid.
|
||||
* Display a Close Dialog message when cell is no longer valid.
|
||||
*/
|
||||
public void displayMessage() {
|
||||
if (this.msgBox == null || msgBox.isDisposed()) {
|
||||
|
@ -477,7 +489,8 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param identArray the identArray to set
|
||||
* @param identArray
|
||||
* the identArray to set
|
||||
*/
|
||||
public void setIdentArray(String[] identArray) {
|
||||
this.identArray = identArray;
|
||||
|
@ -485,8 +498,12 @@ public class TimeHeightDlg extends CaveSWTDialog implements ITimeHeightInfo {
|
|||
populateIdentCombo();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.ITimeHeightInfo#getDialogTime()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.commondialogs.ITimeHeightInfo#getDialogTime
|
||||
* ()
|
||||
*/
|
||||
@Override
|
||||
public Date getDialogTime() {
|
||||
|
|
|
@ -63,6 +63,7 @@ import com.raytheon.uf.viz.monitor.scan.ScanMonitor;
|
|||
* Feb 28, 2013 1731 bsteffen Optimize construction of scan resource.
|
||||
* Apr 18, 2013 1926 njensen Reuse URIs in construction of resource
|
||||
* Jul 24, 2013 2218 mpduff Changed method signature.
|
||||
* Aug 15, 2013 2143 mpduff Add missing data check.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -97,12 +98,13 @@ public class ScanResourceData extends AbstractRequestableResourceData {
|
|||
protected AbstractVizResource<?, ?> constructResource(
|
||||
LoadProperties loadProperties, PluginDataObject[] objects)
|
||||
throws VizException {
|
||||
if (objects.length > 0) {
|
||||
List<String> uris = getScan().getAvailableUris(
|
||||
ScanTables.valueOf(tableType), icao);
|
||||
try {
|
||||
long t0 = System.currentTimeMillis();
|
||||
// Forces ScanMonitor to grab data back for one extra hour 1/2 past
|
||||
// the first time.
|
||||
// Forces ScanMonitor to grab data back for one extra hour 1/2
|
||||
// past the first time.
|
||||
Calendar firstCal = ((ScanRecord) objects[0]).getDataTime()
|
||||
.getRefTimeAsCalendar();
|
||||
firstCal.add(Calendar.MINUTE, -90);
|
||||
|
@ -127,8 +129,8 @@ public class ScanResourceData extends AbstractRequestableResourceData {
|
|||
getScan().setTableData(icao, record.getTableData(),
|
||||
/*
|
||||
* TODO: This should be the volume scan time, but
|
||||
* {Radar,Scan}Record.getVolScanTime is actually the radar
|
||||
* product generation time.
|
||||
* {Radar,Scan}Record.getVolScanTime is actually the
|
||||
* radar product generation time.
|
||||
*/
|
||||
record.getDataTime().getRefTime(), record.getTilt(),
|
||||
record.getDataTime().getRefTime(), tableType);
|
||||
|
@ -153,7 +155,8 @@ public class ScanResourceData extends AbstractRequestableResourceData {
|
|||
* {Radar,Scan}Record.getVolScanTime is actually the
|
||||
* radar product generation time.
|
||||
*/
|
||||
record.getDataTime().getRefTime(), record.getTilt(),
|
||||
record.getDataTime().getRefTime(),
|
||||
record.getTilt(),
|
||||
record.getDataTime().getRefTime(),
|
||||
record.getType());
|
||||
getScan().setDmdTilt(record.getTilt(), icao);
|
||||
|
@ -184,9 +187,9 @@ public class ScanResourceData extends AbstractRequestableResourceData {
|
|||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
getScan().closeDialog(icao);
|
||||
}
|
||||
}
|
||||
return new ScanResource(this, loadProperties);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.Collection;
|
|||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
@ -80,6 +81,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* button if they want to close the dialog.
|
||||
* Jul 24, 2013 #2218 mpduff Changed method signature.
|
||||
* Jul 26, 2013 #2143 skorolev Changes for non-blocking dialog.
|
||||
* Aug 15, 2013 #2143 mpduff Change how the dialogs close to prevent ConcurrentModificationException.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -269,11 +271,15 @@ public abstract class AbstractTableDlg extends CaveSWTDialog implements
|
|||
|
||||
// Loop and close all of the open dialogs;
|
||||
Set<ICommonDialogAction> keys = dialogsMap.keySet();
|
||||
|
||||
List<ICommonDialogAction> toClose = new ArrayList<ICommonDialogAction>(
|
||||
keys.size());
|
||||
for (ICommonDialogAction icda : keys) {
|
||||
icda.closeDialog();
|
||||
toClose.add(icda);
|
||||
}
|
||||
|
||||
for (ICommonDialogAction icda : toClose) {
|
||||
icda.closeDialog();
|
||||
}
|
||||
dialogsMap.clear();
|
||||
|
||||
return true;
|
||||
|
|
|
@ -96,7 +96,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* button if they want to close the dialog.
|
||||
* Jul 24, 2013 2218 mpduff Change method signature.
|
||||
* Jul 26, 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
*
|
||||
* Aug 15, 2013 2143 mpduff Added some isDisposed() checks.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -105,7 +105,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
public class SCANDmdTableDlg extends AbstractTableDlg implements
|
||||
IAttributeUpdate, IThresholdUpdate, IDisplayFilterUpdate,
|
||||
IRequestTimeHeightData {
|
||||
private static final transient IUFStatusHandler statusHandler = UFStatus
|
||||
private final IUFStatusHandler statusHandler = UFStatus
|
||||
.getHandler(SCANDmdTableDlg.class);
|
||||
|
||||
/**
|
||||
|
@ -526,7 +526,8 @@ public class SCANDmdTableDlg extends AbstractTableDlg implements
|
|||
@Override
|
||||
public void dialogClosed(Object returnValue) {
|
||||
if (!alarmBtn.isDisposed()
|
||||
&& mgr.getAlertedAlarms(site, scanTable).isEmpty()) {
|
||||
&& mgr.getAlertedAlarms(site, scanTable)
|
||||
.isEmpty()) {
|
||||
turnOffAlarm();
|
||||
}
|
||||
}
|
||||
|
@ -723,7 +724,7 @@ public class SCANDmdTableDlg extends AbstractTableDlg implements
|
|||
* Display the alert time limit dialog.
|
||||
*/
|
||||
private void displayAlarmTimeLimitDialog() {
|
||||
if (alarmTimeLimitDlg == null) {
|
||||
if (alarmTimeLimitDlg == null || alarmTimeLimitDlg.isDisposed()) {
|
||||
alarmTimeLimitDlg = new SCANAlarmTimeLimitDlg(shell, scanTable,
|
||||
this.site);
|
||||
alarmTimeLimitDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
@ -746,7 +747,7 @@ public class SCANDmdTableDlg extends AbstractTableDlg implements
|
|||
* Display the alarm threshold dialog.
|
||||
*/
|
||||
private void displayAlarmThresholdDialog() {
|
||||
if (alarmThreshDlg == null) {
|
||||
if (alarmThreshDlg == null || alarmThreshDlg.isDisposed()) {
|
||||
alarmThreshDlg = new SCANAlarmThreshDlg(site, shell, scanTable);
|
||||
alarmThreshDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Apr 29, 2013 #1945 lvenable Code cleanup for SCAN performance.
|
||||
* 24 Jul 2013 #2143 skorolev Changes non-blocking dialogs.
|
||||
* Aug 15, 2013 2143 mpduff Added some isDisposed() checks.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -137,16 +138,22 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
open();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setTableType()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setTableType()
|
||||
*/
|
||||
@Override
|
||||
protected void setTableType() {
|
||||
scanTable = ScanTables.MESO;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#initComponents()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#initComponents()
|
||||
*/
|
||||
@Override
|
||||
protected void initComponents() {
|
||||
|
@ -412,13 +419,11 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
|| (attributeDlg.getParent().isDisposed() == true)) {
|
||||
attributeDlg = new SCANAttributesDlg(shell, scanTable, this);
|
||||
attributeDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
@Override
|
||||
public void dialogClosed(Object returnValue) {
|
||||
unregisterDialog(attributeDlg);
|
||||
attributeDlg = null;
|
||||
}
|
||||
|
||||
});
|
||||
registerDialog(attributeDlg);
|
||||
attributeDlg.open();
|
||||
|
@ -431,17 +436,15 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
* Display Alarm Time LimitDialog
|
||||
*/
|
||||
private void displayAlarmTimeLimitDialog() {
|
||||
if (alarmTimeLimitDlg == null) {
|
||||
if (alarmTimeLimitDlg == null || alarmTimeLimitDlg.isDisposed()) {
|
||||
alarmTimeLimitDlg = new SCANAlarmTimeLimitDlg(shell, scanTable,
|
||||
this.site);
|
||||
alarmTimeLimitDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
@Override
|
||||
public void dialogClosed(Object returnValue) {
|
||||
unregisterDialog(alarmTimeLimitDlg);
|
||||
alarmTimeLimitDlg = null;
|
||||
}
|
||||
|
||||
});
|
||||
registerDialog(alarmTimeLimitDlg);
|
||||
alarmTimeLimitDlg.open();
|
||||
|
@ -454,16 +457,14 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
* Display Color Threshold Dialog.
|
||||
*/
|
||||
private void displayColorThresholdDialog() {
|
||||
if (colorThresholdDlg == null) {
|
||||
if (colorThresholdDlg == null || colorThresholdDlg.isDisposed()) {
|
||||
colorThresholdDlg = new SCANColorThreshDlg(shell, scanTable, this);
|
||||
colorThresholdDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
@Override
|
||||
public void dialogClosed(Object returnValue) {
|
||||
unregisterDialog(colorThresholdDlg);
|
||||
colorThresholdDlg = null;
|
||||
}
|
||||
|
||||
});
|
||||
registerDialog(colorThresholdDlg);
|
||||
colorThresholdDlg.open();
|
||||
|
@ -472,8 +473,12 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#handleRankMenuEvent(org.eclipse.swt.events.SelectionEvent)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#handleRankMenuEvent
|
||||
* (org.eclipse.swt.events.SelectionEvent)
|
||||
*/
|
||||
@Override
|
||||
protected void handleRankMenuEvent(SelectionEvent event) {
|
||||
|
@ -514,8 +519,12 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
this.fireDialogShutdown(this);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeAction()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeAction
|
||||
* ()
|
||||
*/
|
||||
@Override
|
||||
protected void shellDisposeAction() {
|
||||
|
@ -527,16 +536,23 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
});
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeDialog
|
||||
* ()
|
||||
*/
|
||||
@Override
|
||||
public void shellDisposeDialog() {
|
||||
close();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setShellText()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setShellText()
|
||||
*/
|
||||
@Override
|
||||
protected void setShellText() {
|
||||
|
@ -545,16 +561,24 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#sortedColumn(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#sortedColumn(java
|
||||
* .lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void sortedColumn(String columnName) {
|
||||
rankBtn.setText("Rank: " + columnName);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#notify(com.raytheon.uf.viz.monitor.events.IMonitorEvent)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#notify(com.raytheon
|
||||
* .uf.viz.monitor.events.IMonitorEvent)
|
||||
*/
|
||||
@Override
|
||||
public void notify(IMonitorEvent me) {
|
||||
|
@ -586,32 +610,47 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByIdent(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByIdent(java
|
||||
* .lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void centerByIdent(String ident) {
|
||||
fireRecenter(ident, ScanTables.MESO, site);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByStormId(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByStormId(
|
||||
* java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void centerByStormId(String stormId) {
|
||||
fireRecenter(stormId, ScanTables.CELL, site);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IRequestTrendGraphData#getCurrentDate()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.commondialogs.IRequestTrendGraphData
|
||||
* #getCurrentDate()
|
||||
*/
|
||||
@Override
|
||||
public Date getCurrentDate() {
|
||||
return currentTime;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#getTrendSetName()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#getTrendSetName()
|
||||
*/
|
||||
@Override
|
||||
public String getTrendSetName() {
|
||||
|
@ -619,8 +658,11 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
return null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IAttributeUpdate#attributeUpdates(boolean[])
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IAttributeUpdate#
|
||||
* attributeUpdates(boolean[])
|
||||
*/
|
||||
@Override
|
||||
public void attributeUpdates(boolean[] visibleAttrs) {
|
||||
|
@ -631,8 +673,11 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
createRankPopupMenu(rankPopupMenu, rankBtn);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IThresholdUpdate#thresholdsUpdated(java.lang.String, double, double, double)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IThresholdUpdate#
|
||||
* thresholdsUpdated(java.lang.String, double, double, double)
|
||||
*/
|
||||
@Override
|
||||
public void thresholdsUpdated(String attrName, double upper, double mid,
|
||||
|
@ -665,8 +710,11 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
fireThresholdUpdate(new IMonitorThresholdEvent(this));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#updateAfterConfigLoad()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#
|
||||
* updateAfterConfigLoad()
|
||||
*/
|
||||
@Override
|
||||
protected void updateAfterConfigLoad() {
|
||||
|
@ -689,8 +737,11 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#displayTrendSetGraphs(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#
|
||||
* displayTrendSetGraphs(java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void displayTrendSetGraphs(String ident) {
|
||||
|
@ -717,16 +768,22 @@ public class SCANMesoTableDlg extends AbstractTableDlg implements
|
|||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOffAlarm()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOffAlarm()
|
||||
*/
|
||||
@Override
|
||||
public void turnOffAlarm() {
|
||||
mgr.setRing(false);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOnAlarm()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOnAlarm()
|
||||
*/
|
||||
@Override
|
||||
public void turnOnAlarm() {
|
||||
|
|
|
@ -72,6 +72,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Apr 29, 2013 #1945 lvenable Code cleanup for SCAN performance.
|
||||
* 24 Jul 2013 #2143 skorolev Changes for non-blocking dialogs.
|
||||
* Aug 15, 2013 2143 mpduff Added some isDisposed() checks.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -129,16 +130,22 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
open();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setTableType()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setTableType()
|
||||
*/
|
||||
@Override
|
||||
protected void setTableType() {
|
||||
scanTable = ScanTables.TVS;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#initComponents()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#initComponents()
|
||||
*/
|
||||
@Override
|
||||
protected void initComponents() {
|
||||
|
@ -399,8 +406,7 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
* Display Attributes Dialog.
|
||||
*/
|
||||
private void displayAttributesDialog() {
|
||||
if ((attributeDlg == null)
|
||||
|| (attributeDlg.getParent().isDisposed() == true)) {
|
||||
if ((attributeDlg == null) || (attributeDlg.getParent().isDisposed())) {
|
||||
attributeDlg = new SCANAttributesDlg(shell, scanTable, this);
|
||||
attributeDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
|
@ -422,7 +428,7 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
* Display Alarm Time Limit Dialog.
|
||||
*/
|
||||
private void displayAlarmTimeLimitDialog() {
|
||||
if (alarmTimeLimitDlg == null) {
|
||||
if (alarmTimeLimitDlg == null || alarmTimeLimitDlg.isDisposed()) {
|
||||
alarmTimeLimitDlg = new SCANAlarmTimeLimitDlg(shell, scanTable,
|
||||
this.site);
|
||||
alarmTimeLimitDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
@ -445,7 +451,7 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
* Display Color Threshold Dialog.
|
||||
*/
|
||||
private void displayColorThresholdDialog() {
|
||||
if (colorThresholdDlg == null) {
|
||||
if (colorThresholdDlg == null || colorThresholdDlg.isDisposed()) {
|
||||
colorThresholdDlg = new SCANColorThreshDlg(shell, scanTable, this);
|
||||
colorThresholdDlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
|
@ -463,8 +469,12 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#handleRankMenuEvent(org.eclipse.swt.events.SelectionEvent)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#handleRankMenuEvent
|
||||
* (org.eclipse.swt.events.SelectionEvent)
|
||||
*/
|
||||
@Override
|
||||
protected void handleRankMenuEvent(SelectionEvent event) {
|
||||
|
@ -503,8 +513,12 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
this.fireDialogShutdown(this);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeAction()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeAction
|
||||
* ()
|
||||
*/
|
||||
@Override
|
||||
protected void shellDisposeAction() {
|
||||
|
@ -523,16 +537,23 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
});
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeDialog()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#shellDisposeDialog
|
||||
* ()
|
||||
*/
|
||||
@Override
|
||||
public void shellDisposeDialog() {
|
||||
close();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setShellText()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#setShellText()
|
||||
*/
|
||||
@Override
|
||||
protected void setShellText() {
|
||||
|
@ -541,16 +562,24 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#sortedColumn(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#sortedColumn(java
|
||||
* .lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void sortedColumn(String columnName) {
|
||||
rankBtn.setText("Rank: " + columnName);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#notify(com.raytheon.uf.viz.monitor.events.IMonitorEvent)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#notify(com.raytheon
|
||||
* .uf.viz.monitor.events.IMonitorEvent)
|
||||
*/
|
||||
@Override
|
||||
public void notify(IMonitorEvent me) {
|
||||
|
@ -596,32 +625,47 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
ScanTables.TVS, site, time)));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByIdent(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByIdent(java
|
||||
* .lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void centerByIdent(String ident) {
|
||||
fireRecenter(ident, ScanTables.TVS, site);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByStormId(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#centerByStormId(
|
||||
* java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void centerByStormId(String stormId) {
|
||||
fireRecenter(stormId, ScanTables.CELL, site);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IRequestTrendGraphData#getCurrentDate()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.commondialogs.IRequestTrendGraphData
|
||||
* #getCurrentDate()
|
||||
*/
|
||||
@Override
|
||||
public Date getCurrentDate() {
|
||||
return currentTime;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.ITableAction#getTrendSetName()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.ITableAction#getTrendSetName()
|
||||
*/
|
||||
@Override
|
||||
public String getTrendSetName() {
|
||||
|
@ -629,8 +673,11 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
return null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IAttributeUpdate#attributeUpdates(boolean[])
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IAttributeUpdate#
|
||||
* attributeUpdates(boolean[])
|
||||
*/
|
||||
@Override
|
||||
public void attributeUpdates(boolean[] visibleAttrs) {
|
||||
|
@ -641,8 +688,11 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
createRankPopupMenu(rankPopupMenu, rankBtn);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IThresholdUpdate#thresholdsUpdated(java.lang.String, double, double, double)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.commondialogs.IThresholdUpdate#
|
||||
* thresholdsUpdated(java.lang.String, double, double, double)
|
||||
*/
|
||||
@Override
|
||||
public void thresholdsUpdated(String attrName, double upper, double mid,
|
||||
|
@ -654,8 +704,11 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
fireThresholdUpdate(new IMonitorThresholdEvent(this));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#updateAfterConfigLoad()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#
|
||||
* updateAfterConfigLoad()
|
||||
*/
|
||||
@Override
|
||||
protected void updateAfterConfigLoad() {
|
||||
|
@ -677,8 +730,11 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#displayTrendSetGraphs(java.lang.String)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#
|
||||
* displayTrendSetGraphs(java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void displayTrendSetGraphs(String ident) {
|
||||
|
@ -707,16 +763,22 @@ public class SCANTvsTableDlg extends AbstractTableDlg implements
|
|||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOffAlarm()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOffAlarm()
|
||||
*/
|
||||
@Override
|
||||
public void turnOffAlarm() {
|
||||
mgr.setRing(false);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOnAlarm()
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* com.raytheon.uf.viz.monitor.scan.tables.AbstractTableDlg#turnOnAlarm()
|
||||
*/
|
||||
@Override
|
||||
public void turnOnAlarm() {
|
||||
|
|
Loading…
Add table
Reference in a new issue