Revision e0b35bf1
Added by Niels Hoffmann almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.TermComboType; |
24 |
import eu.etaxonomy.taxeditor.ui.forms.CdmPropertyChangeEvent; |
|
25 | 24 |
import eu.etaxonomy.taxeditor.ui.forms.CheckboxElement; |
26 | 25 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
27 | 26 |
import eu.etaxonomy.taxeditor.ui.forms.IEnableableFormElement; |
... | ... | |
29 | 28 |
import eu.etaxonomy.taxeditor.ui.forms.NumberWithLabelElement; |
30 | 29 |
import eu.etaxonomy.taxeditor.ui.forms.SelectionArbitrator; |
31 | 30 |
import eu.etaxonomy.taxeditor.ui.forms.TextWithLabelElement; |
32 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
|
33 | 31 |
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement; |
34 | 32 |
import eu.etaxonomy.taxeditor.ui.term.AbstractTermComboElement; |
35 | 33 |
|
... | ... | |
176 | 174 |
public void handleEvent(Object eventSource){ |
177 | 175 |
if(eventSource == combo_rank){ |
178 | 176 |
getEntity().setRank(combo_rank.getSelection()); |
179 |
clearCheckRankWarnings(); |
|
177 |
clearCheckRankWarnings(); |
|
178 |
updateContent(); |
|
180 | 179 |
} |
181 | 180 |
else if(eventSource == text_appendedPhrase){ |
182 | 181 |
getEntity().setAppendedPhrase(text_appendedPhrase.getText()); |
... | ... | |
199 | 198 |
else if(eventSource == checkbox_anamorphic){ |
200 | 199 |
((BotanicalName)getEntity()).setAnamorphic(checkbox_anamorphic.getSelection()); |
201 | 200 |
} |
202 |
|
|
203 |
|
|
204 |
if(eventSource != toggleable_cache && !toggleable_cache.getLayoutComposite().isDisposed()){ |
|
205 |
toggleable_cache.setText(getEntity().getNameCache()); |
|
206 |
} |
|
207 |
|
|
208 |
// // we have to notify the parent if this is embedded in the nonviral name section |
|
209 |
// // maybe we can handle this a little bit more elegant |
|
210 |
// if(getParentElement() instanceof AbstractCdmDetailSection) |
|
211 |
// firePropertyChangeEvent(new CdmPropertyChangeEvent(getParentElement(), null)); |
|
212 | 201 |
} |
213 | 202 |
|
214 | 203 |
/* |
Also available in: Unified diff
Refactoring of property change handling. Also fixes #2363