From a8a275661cfddacc5e9aa98cceef1204a6c61e42 Mon Sep 17 00:00:00 2001 From: Loubna Bousaidi Date: Wed, 10 Dec 2014 19:57:04 +0000 Subject: [PATCH] ASM #628 - Fixed Crest time Change-Id: I5f9f58cfdb1689f331628498a781bb60f5549ac5 Former-commit-id: fb5031e5b808527695987b610f4df5b60b66cfaa [formerly fb5031e5b808527695987b610f4df5b60b66cfaa [formerly cddb0ff5626f25dd3555853d578928d7b93dcacb]] Former-commit-id: 2facd8c5475a976cccbac0c4c30af623a5d62f20 Former-commit-id: 56de54490b825803e6d68688b51c6ddac1ab32f1 --- .../viz/hydrocommon/cresthistory/CrestHistoryDlg.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cave/com.raytheon.viz.hydrocommon/src/com/raytheon/viz/hydrocommon/cresthistory/CrestHistoryDlg.java b/cave/com.raytheon.viz.hydrocommon/src/com/raytheon/viz/hydrocommon/cresthistory/CrestHistoryDlg.java index dcd3e3aa30..3344e021ab 100644 --- a/cave/com.raytheon.viz.hydrocommon/src/com/raytheon/viz/hydrocommon/cresthistory/CrestHistoryDlg.java +++ b/cave/com.raytheon.viz.hydrocommon/src/com/raytheon/viz/hydrocommon/cresthistory/CrestHistoryDlg.java @@ -72,6 +72,9 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog; * Also see https://bugs.eclipse.org/bugs/show_bug.cgi?id=43004 * Jul 11, 2013 2088 rferrel Make dialog non-blocking. * + * Dec 10, 2014 16061 lbousaidi set the crest time to the correct value for a + * new record,also fixed the sorting to match the correct + * timecrest. * * * @@ -401,6 +404,8 @@ public class CrestHistoryDlg extends CaveSWTDialog implements public void widgetSelected(SelectionEvent event) { sortCrestHistoryList(); updateCrestHistoryList(); + crestHistoryList.setSelection(0); + setSelectedCrest(crestHistoryData.getCrestDataArray().get(0)); } }); } @@ -1006,7 +1011,7 @@ public class CrestHistoryDlg extends CaveSWTDialog implements suppressChk.setSelection(false); iceJamChk.setSelection(false); - statusCbo.select(3); + statusCbo.select(0); remarksTF.setText(""); }