From 18a3973fa12b3f153b973da0396f143ec2f18ea3 Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Thu, 14 Mar 2019 12:00:18 +0100
Subject: [PATCH] ref #6413 Disable non-editable text fields
---
.../ui/section/name/type/CloneTypeWizardComposite.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java
index 2657c47f6..a7ae90865 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java
@@ -47,7 +47,7 @@ public class CloneTypeWizardComposite extends Composite {
lblNewLabel_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
lblNewLabel_3.setText("Base Type");
- comboViewerBaseType = new ComboViewer(this, SWT.NONE);
+ comboViewerBaseType = new ComboViewer(this, SWT.READ_ONLY);
Combo combo = comboViewerBaseType.getCombo();
combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
@@ -63,6 +63,7 @@ public class CloneTypeWizardComposite extends Composite {
lblNewLabel_2.setText("Collection");
txtCollection = new Text(this, SWT.BORDER);
+ txtCollection.setEnabled(false);
txtCollection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
btnBrowseCollection = new Button(this, SWT.NONE);
--
2.34.1