Merge pull request #374 from srcarter3/unidata_18.2.1
Changed the size of the GIS Import Dialog:
This commit is contained in:
commit
5a902ef211
1 changed files with 4 additions and 3 deletions
|
@ -78,6 +78,7 @@ import com.raytheon.viz.ui.widgets.TimeRangeEntry;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Dec 5, 2012 randerso Initial creation
|
* Dec 5, 2012 randerso Initial creation
|
||||||
* Feb 15, 2013 #1629 randerso Fix saving of default plugin to prefs
|
* Feb 15, 2013 #1629 randerso Fix saving of default plugin to prefs
|
||||||
|
* Nov 1, 2021 srcarter@ucar Made the dialog shorter to show on smaller screens
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -258,14 +259,12 @@ public class GisDataStoreParametersDialog extends CaveJFACEDialog {
|
||||||
tableGroup.setLayoutData(layoutData);
|
tableGroup.setLayoutData(layoutData);
|
||||||
layout = new GridLayout(1, false);
|
layout = new GridLayout(1, false);
|
||||||
tableGroup.setLayout(layout);
|
tableGroup.setLayout(layout);
|
||||||
layout.marginWidth = 0;
|
|
||||||
layout.marginHeight = 0;
|
|
||||||
tableGroup.setText("Table:");
|
tableGroup.setText("Table:");
|
||||||
|
|
||||||
tablesList = new List(tableGroup, SWT.SINGLE | SWT.BORDER
|
tablesList = new List(tableGroup, SWT.SINGLE | SWT.BORDER
|
||||||
| SWT.V_SCROLL | SWT.H_SCROLL);
|
| SWT.V_SCROLL | SWT.H_SCROLL);
|
||||||
layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
|
layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
|
||||||
layoutData.heightHint = tablesList.getItemHeight() * 12;
|
layoutData.heightHint = tablesList.getItemHeight() * 4;
|
||||||
tablesList.setLayoutData(layoutData);
|
tablesList.setLayoutData(layoutData);
|
||||||
tablesList.addSelectionListener(new SelectionAdapter() {
|
tablesList.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -306,6 +305,8 @@ public class GisDataStoreParametersDialog extends CaveJFACEDialog {
|
||||||
typeCombo.setText(pluginName);
|
typeCombo.setText(pluginName);
|
||||||
selectedPlugin = null;
|
selectedPlugin = null;
|
||||||
selectPlugin(pluginName);
|
selectPlugin(pluginName);
|
||||||
|
|
||||||
|
((GridLayout)mainComp.getLayout()).marginHeight=2;
|
||||||
return mainComp;
|
return mainComp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue