Small changes for WarngenDialog

- increase default list length
- re-enable single-clicking to select multiple options in the product list
This commit is contained in:
srcarter3 2023-04-17 12:14:46 -07:00
parent 80284cdea6
commit 1fe9f49418

View file

@ -276,6 +276,8 @@ import com.raytheon.viz.warngen.util.FollowUpUtil;
* for the bottom buttons to be centered * for the bottom buttons to be centered
* Jun 28, 2022 srcarter@ucar Small change to disable the "UPDATE LIST" * Jun 28, 2022 srcarter@ucar Small change to disable the "UPDATE LIST"
* combobox (not used in Unidata version) * combobox (not used in Unidata version)
* Apr 17, 2023 srcarter@ucar Re-enable single clicking for multiple selections
* in bullet list. Increase default size of list
* *
* </pre> * </pre>
* *
@ -563,7 +565,7 @@ public class WarngenDialog extends CaveSWTDialog
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
gd.widthHint = BULLETLIST_WIDTH_IN_CHARS * charWidth; gd.widthHint = BULLETLIST_WIDTH_IN_CHARS * charWidth;
gd.heightHint = lineHeight * 4; gd.heightHint = lineHeight * 7;
bulletList.setLayoutData(gd); bulletList.setLayoutData(gd);
bulletListManager.recreateBullets( bulletListManager.recreateBullets(
warngenLayer.getConfiguration().getBullets(), warngenLayer.getConfiguration().getBullets(),
@ -2037,6 +2039,7 @@ public class WarngenDialog extends CaveSWTDialog
private void bulletListSelected() { private void bulletListSelected() {
bulletListManager.updateSelectedIndices(bulletList.getSelectionIndex(), bulletListManager.updateSelectedIndices(bulletList.getSelectionIndex(),
warngenLayer.state.followupData != null); warngenLayer.state.followupData != null);
updateBulletList();
} }
/** /**