Project

General

Profile

Revision 132209be

ID132209be7a6a95a9a37888946411e2668e30b63c
Parent 724c93bd
Child 693c1847

Added by Patrick Plitzner almost 2 years ago

ref #7998 Set feature tree text field to editable=false

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
437 437
                    null);
438 438
            if(tree!=null){
439 439
                featureTreeEditorComposite.setSelectedTree(tree);
440
                featureTreeEditorComposite.getText_title().setEnabled(false);
441 440
            }
442 441
        }
443 442
    }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditorComposite.java
69 69

  
70 70
        text_title = new Text(composite_treeTitle, SWT.BORDER);
71 71
        text_title.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
72
        text_title.setEnabled(false);
72
        text_title.setEditable(false);
73 73

  
74 74
        btnOpenFeatureTree = new Button(composite_treeTitle, SWT.NONE);
75 75
        btnOpenFeatureTree.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
......
161 161
                            null);
162 162
                    if(tree!=null){
163 163
                        setSelectedTree(tree);
164
                        text_title.setEnabled(false);
165 164
                        if(dirtyMarkable!=null){
166 165
                            dirtyMarkable.forceDirty();
167 166
                        }
......
184 183
        for (Listener listener : listeners) {
185 184
            text_title.addListener(SWT.Modify, listener);
186 185
        }
187
        text_title.setEnabled(true);
188
        text_title.setEnabled(true);
189 186
    }
190 187

  
191 188
    public FeatureTree getFeatureTree() {
192 189
        return featureTree;
193 190
    }
194 191

  
195
    public Text getText_title() {
196
        return text_title;
197
    }
198

  
199 192
    public Label getLabel_title() {
200 193
        return label_title;
201 194
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)