diff --git a/io/plugins/eu.esdihumboldt.hale.io.csv.ui/src/eu/esdihumboldt/hale/io/csv/ui/InstanceExportConfigurationPage.java b/io/plugins/eu.esdihumboldt.hale.io.csv.ui/src/eu/esdihumboldt/hale/io/csv/ui/InstanceExportConfigurationPage.java index 7f675c2ea6..b2781f06c3 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.csv.ui/src/eu/esdihumboldt/hale/io/csv/ui/InstanceExportConfigurationPage.java +++ b/io/plugins/eu.esdihumboldt.hale.io.csv.ui/src/eu/esdihumboldt/hale/io/csv/ui/InstanceExportConfigurationPage.java @@ -30,13 +30,11 @@ import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.graphics.Color; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Table; import org.eclipse.ui.PlatformUI; @@ -57,7 +55,6 @@ public class InstanceExportConfigurationPage extends CommonInstanceExportConfigu private CheckboxTableViewer featureTypeTable; private Button selectAll = null; private Group chooseFeatureTypes; - private Table table; /** * @@ -122,23 +119,17 @@ public void widgetSelected(SelectionEvent e) { } }); - Label separatorLabel = new Label(page, SWT.NONE); - separatorLabel.setText("Warning! Feature types with no data are not selectable"); + Table table = new Table(chooseFeatureTypes, + SWT.CHECK | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL); - // Set the text colour of the label to yellow - Color greyLabel = PlatformUI.getWorkbench().getDisplay() - .getSystemColor(SWT.COLOR_DARK_GRAY); - separatorLabel.setForeground(greyLabel); + featureTypeTable = new CheckboxTableViewer(table); - table = new Table(chooseFeatureTypes, SWT.CHECK | SWT.MULTI | SWT.SCROLL_PAGE); - table.setHeaderVisible(false); - table.setLinesVisible(false); - table.setBackground(PlatformUI.getWorkbench().getDisplay() - .getSystemColor(SWT.COLOR_LIST_BACKGROUND)); - GridDataFactory groupData = GridDataFactory.fillDefaults().grab(true, false); - groupData.applyTo(table); + // Configure the layout for the table + GridData tableGridData = new GridData(SWT.FILL, SWT.FILL, true, true); + tableGridData.heightHint = 300; // Minimum height for the table + tableGridData.widthHint = 300; // Minimum width for the table + table.setLayoutData(tableGridData); - featureTypeTable = new CheckboxTableViewer(table); featureTypeTable.setLabelProvider(new LabelProvider() { @Override diff --git a/io/plugins/eu.esdihumboldt.hale.io.xls.ui/src/eu/esdihumboldt/hale/io/xls/ui/XLSInstanceExportConfigurationPage.java b/io/plugins/eu.esdihumboldt.hale.io.xls.ui/src/eu/esdihumboldt/hale/io/xls/ui/XLSInstanceExportConfigurationPage.java index c9542c1b2d..3f4c376581 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.xls.ui/src/eu/esdihumboldt/hale/io/xls/ui/XLSInstanceExportConfigurationPage.java +++ b/io/plugins/eu.esdihumboldt.hale.io.xls.ui/src/eu/esdihumboldt/hale/io/xls/ui/XLSInstanceExportConfigurationPage.java @@ -113,15 +113,17 @@ public void widgetSelected(SelectionEvent e) { } }); - table = new Table(chooseFeatureTypes, SWT.CHECK | SWT.MULTI | SWT.SCROLL_PAGE); - table.setHeaderVisible(false); - table.setLinesVisible(false); - table.setBackground(PlatformUI.getWorkbench().getDisplay() - .getSystemColor(SWT.COLOR_LIST_BACKGROUND)); - GridDataFactory groupData = GridDataFactory.fillDefaults().grab(true, false); - groupData.applyTo(table); + table = new Table(chooseFeatureTypes, + SWT.CHECK | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL); featureTypeTable = new CheckboxTableViewer(table); + + // Configure the layout for the table + GridData tableGridData = new GridData(SWT.FILL, SWT.FILL, true, true); + tableGridData.heightHint = 300; // Minimum height for the table + tableGridData.widthHint = 300; // Minimum width for the table + table.setLayoutData(tableGridData); + featureTypeTable.setLabelProvider(new LabelProvider() { @Override