ref #6413 Disable non-editable text fields
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 14 Mar 2019 11:00:18 +0000 (12:00 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 14 Mar 2019 11:00:48 +0000 (12:00 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java

index 2657c47f613c184cdfda665968eed074aa45b8e8..a7ae908651bb337c6ad33ea1368583967f45b2d2 100644 (file)
@@ -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);