ASM #545 Hydrobase IngestFilter GUI fixes

Change-Id: I368113a8ccb0356198a52a9d5c8a39247dce68e8

Former-commit-id: 071a1ae06a [formerly a8710a68e4aa28861c03c5d988bc36a553704c31]
Former-commit-id: c4fc2f169b
This commit is contained in:
Xuezhi.Wei 2014-05-02 16:54:38 +00:00
parent 3b48dcc680
commit a647b1ddf3
2 changed files with 10 additions and 3 deletions

View file

@ -71,10 +71,13 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* SOFTWARE HISTORY
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Sep 4, 2008 lvenable Initial creation
* Sep 4, 2008 lvenable Initial creation
* Dec 11, 2008 1787 askripsk Connect to DB
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
* May 1, 2014 17096 xwei By default the first item of the data
* list is selected
*
*
* </pre>
*
@ -642,7 +645,7 @@ public class DataIngestFilterDlg extends CaveSWTDialog {
typeSrcLbl.setEnabled(false);
typeSrcLbl.setLayoutData(gd);
gd = new GridData();
gd = new GridData(SWT.FILL, SWT.CENTER, false, true);
gd.horizontalSpan = 3;
typeSrcFilterCbo = new Combo(filterGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
typeSrcFilterCbo.select(0);
@ -1045,6 +1048,8 @@ public class DataIngestFilterDlg extends CaveSWTDialog {
if (ingestDataList.getItemCount() > 0) {
updateDialogState(DialogStates.DATA_AVAILABLE);
ingestDataList.select(0);
updateSelectedInformation();
} else {
updateDialogState(DialogStates.NO_DATA);
}

View file

@ -37,6 +37,8 @@ import com.raytheon.viz.hydrocommon.data.DataIngestFilterData;
* ------------ ---------- ----------- --------------------------
* Dec 11, 2008 1787 askripsky Initial Creation
* Apr 18, 2013 1790 rferrel Code clean up with non-blocking dialogs.
* May 1, 2014 17096 xwei Updated the filter list SQL statement
*
*
* </pre>
*
@ -220,7 +222,7 @@ public class DataIngestFilterDataManager {
StringBuffer whereClause = new StringBuffer();
if (filterByLocation) {
whereClause.append("lid like '%" + selectedLocation + "%'");
whereClause.append( "lid='" + selectedLocation + "'" );
}
if (filterByPE && (selectedPE.size() > 0)) {