ref #6694 Make text field editable only when feature tree is selected
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 20 Jun 2017 08:23:26 +0000 (10:23 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 20 Jun 2017 08:23:26 +0000 (10:23 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java

index af9ef8dadfc7746ac77300179ea32c9e8b906fe1..ec1d61bf7b6b7b80cfdb86e08fec6746a29f01a0 100644 (file)
@@ -118,6 +118,7 @@ public class FeatureTreeEditor implements
 
                text_title = new Text(composite_treeTitle, SWT.BORDER);
                text_title.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
 
                text_title = new Text(composite_treeTitle, SWT.BORDER);
                text_title.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
+               text_title.setEditable(false);
 
                btnOpenFeatureTree = new Button(parent, SWT.NONE);
                btnOpenFeatureTree.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
 
                btnOpenFeatureTree = new Button(parent, SWT.NONE);
                btnOpenFeatureTree.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
@@ -193,6 +194,7 @@ public class FeatureTreeEditor implements
                text_title.removeModifyListener(this);
                text_title.setText(featureTree.getTitleCache());
                text_title.addModifyListener(this);
                text_title.removeModifyListener(this);
                text_title.setText(featureTree.getTitleCache());
                text_title.addModifyListener(this);
+               text_title.setEditable(true);
        }
 
        /** {@inheritDoc} */
        }
 
        /** {@inheritDoc} */