combo boxes are now read only. fixed and issue that arose with #1075
authorn.hoffmann <n.hoffmann@localhost>
Fri, 18 Sep 2009 15:24:54 +0000 (15:24 +0000)
committern.hoffmann <n.hoffmann@localhost>
Fri, 18 Sep 2009 15:24:54 +0000 (15:24 +0000)
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiontree/CommonNameDetailsPage.java
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiontree/DistributionDetailsPage.java
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/namerelations/wizard/ChooseRelationWizardPage.java
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/type/wizard/ChooseSpecimenTypeWizardPage.java
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/dialogs/FilteredTaxonNodeSelectionDialog.java

index cf4ae98bb9ae037af883be555968517e3b1ccae4..4efa4380c96db3b3ac9b9299d01612e93bad8d59 100644 (file)
@@ -109,7 +109,7 @@ public class CommonNameDetailsPage extends AbstractDescriptionDetailsPage implem
                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
index 75d63d4fea2b20d9c9b58981c9b53712f7398d24..5437ccd011c81c7998d303050050c260d244a05b 100644 (file)
@@ -185,7 +185,7 @@ public class DistributionDetailsPage extends AbstractDescriptionDetailsPage {
         \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
@@ -209,7 +209,7 @@ public class DistributionDetailsPage extends AbstractDescriptionDetailsPage {
         * @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
index f44bd87384480bb52929a2c7d0ecbe245b661d19..087f9208e45e541ce200e9b1062469d1c1da2621 100644 (file)
@@ -129,7 +129,7 @@ public class ChooseRelationWizardPage extends WizardPage {
                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
index fa21e42f7365183c21835bb77dce589132494fda..93f63d88b6c9f94c70ead9eb8376978dd1468b79 100644 (file)
@@ -85,7 +85,7 @@ public class ChooseSpecimenTypeWizardPage extends WizardPage {
                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
index 9deda11fedbaf411d7ea553a7f68ae469f991260..19220f846063c077a53c158b7feefde43a9ae274 100644 (file)
@@ -138,7 +138,7 @@ public class FilteredTaxonNodeSelectionDialog extends AbstractFilteredCdmResourc
                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