Revision 31e5785c
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/AbstractGroupedContainerE4.java | ||
---|---|---|
340 | 340 |
|
341 | 341 |
protected void enableFreeText() { |
342 | 342 |
setEnabled(isFreetextEditingAllowed()); |
343 |
|
|
343 | 344 |
} |
344 | 345 |
|
345 | 346 |
/** |
... | ... | |
479 | 480 |
focusListener = new FocusAdapter() { |
480 | 481 |
@Override |
481 | 482 |
public void focusGained(FocusEvent e) { |
482 |
if(!enabled){ |
|
483 |
return; |
|
484 |
} |
|
483 |
// if(!enabled){ |
|
484 |
// return; |
|
485 |
// } |
|
486 |
if (getEditor() |
|
487 |
.getGroupedContainers().isEmpty()){ |
|
488 |
return; |
|
489 |
} |
|
490 |
|
|
485 | 491 |
for (AbstractGroupedContainerE4 container : getEditor() |
486 | 492 |
.getGroupedContainers()) { |
487 | 493 |
container.colorSelected(NOT_SELECTED); |
... | ... | |
891 | 897 |
Color color = enabled ? control.getForeground() : AbstractUtility.getColor(Resources.COLOR_DISABLED_EDITOR); |
892 | 898 |
|
893 | 899 |
getNameViewer().getTextWidget().setEditable(enabled); |
894 |
getNameViewer().getTextWidget().setEnabled(enabled); |
|
900 |
// getNameViewer().getTextWidget().setEnabled(enabled);
|
|
895 | 901 |
getNameViewer().getTextWidget().setForeground(color); |
902 |
|
|
903 |
|
|
896 | 904 |
} |
897 | 905 |
|
898 | 906 |
public boolean isEnabled(){ |
Also available in: Unified diff
fix #6595: not editable synonyms should be enabled to be clickable