Project

General

Profile

« Previous | Next » 

Revision 828e0012

Added by Katja Luther almost 3 years ago

ref #9373: adapt detail elements to enable/disable possibility of toggleable text fields

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/FieldUnitFacadeGeneralDetailElement.java
87 87
    public void handleEvent(Object eventSource) {
88 88
        if (eventSource == toggleableText_titleCache) {
89 89
            getEntity().setTitleCache(toggleableText_titleCache.getText(), toggleableText_titleCache.getState());
90

  
90 91
        } else if (eventSource == selection_country) {
91 92
            getEntity().setCountry(selection_country.getSelection());
92 93
        } else if (eventSource == languageText_locality) {
......
108 109
            getEntity().innerFieldUnit().setPublish(checkIsPublish.getSelection());
109 110
        }
110 111

  
111
        if (eventSource != toggleableText_titleCache) {
112
            toggleableText_titleCache.setText(getEntity().getTitleCache());
113
        }
112
        toggleableText_titleCache.setText(getEntity().getTitleCache());
113

  
114 114
    }
115 115
}

Also available in: Unified diff