createLabel("Language:", client, parent);\r
\r
// create combo\r
- languagesCombo = new Combo(client, SWT.BORDER);\r
+ languagesCombo = new Combo(client, SWT.BORDER | SWT.READ_ONLY);\r
languagesCombo.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL\r
| GridData.HORIZONTAL_ALIGN_FILL));\r
languagesCombo.setVisibleItemCount(VISIBLE_ITEMS);\r
\r
// create status\r
createLabel("Select status:", client, parent);\r
- statusCombo = new Combo(client, SWT.BORDER);\r
+ statusCombo = new Combo(client, SWT.BORDER | SWT.READ_ONLY);\r
statusCombo.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL\r
| GridData.HORIZONTAL_ALIGN_FILL));\r
statusCombo.addSelectionListener(new SelectionAdapter() {\r
* @return\r
*/\r
private Combo createCombo(Composite composite) {\r
- Combo combo = new Combo(composite, SWT.BORDER);\r
+ Combo combo = new Combo(composite, SWT.BORDER | SWT.READ_ONLY);\r
combo.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL\r
| GridData.HORIZONTAL_ALIGN_FILL));\r
return combo;\r
lblType.setText("Choose relationship type:");\r
\r
// Create relation type dropdown \r
- typeCombo = new Combo(container, SWT.BORDER);\r
+ typeCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);\r
typeCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));\r
for (NameRelationshipType relationType : \r
PreferencesUtil.getPreferredNameRelationshipTypes()) {\r
lblChooseStatus.setText("Choose designation type status:");\r
\r
// Create designation type status dropdown \r
- statusCombo = new Combo(container, SWT.BORDER);\r
+ statusCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);\r
statusCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));\r
typeStatusArray = new SpecimenTypeDesignationStatus[PreferencesUtil.getPreferredSpecimenTypeDesignationStatus().size()];\r
int i = 0;\r
Label label = new Label(taxonomicTreeSelection, SWT.NULL);\r
// TODO not working is not really true but leave it there to remind everyone that this is under construction\r
label.setText("Select Taxonomic Tree (not completely working at the moment)");\r
- taxonomicTreeSelectionCombo = new Combo(taxonomicTreeSelection, SWT.NULL);\r
+ taxonomicTreeSelectionCombo = new Combo(taxonomicTreeSelection, SWT.BORDER | SWT.READ_ONLY);\r
taxonomicTreeSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true));\r
\r
for(TaxonomicTree tree : taxonomicTrees){\r