Revision 724c93bd
Added by Andreas Müller about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java | ||
---|---|---|
304 | 304 |
TermDisplayEnum areaDisplay; |
305 | 305 |
try{ |
306 | 306 |
if (displayArea != null){ |
307 |
areaDisplay = TermDisplayEnum.valueOf(displayArea);
|
|
307 |
areaDisplay = TermDisplayEnum.byKey(displayArea);
|
|
308 | 308 |
}else{ |
309 | 309 |
areaDisplay = TermDisplayEnum.Title; |
310 | 310 |
} |
... | ... | |
359 | 359 |
} |
360 | 360 |
index = 0; |
361 | 361 |
if (displayStatus != null){ |
362 |
TermDisplayEnum statusDisplay = TermDisplayEnum.valueOf(displayStatus);
|
|
362 |
TermDisplayEnum statusDisplay = TermDisplayEnum.byKey(displayStatus);
|
|
363 | 363 |
for (String itemLabel : statusDisplaySelectionCombo.getItems()){ |
364 | 364 |
if (itemLabel.equalsIgnoreCase(statusDisplay.getLabel())){ |
365 | 365 |
statusDisplaySelectionCombo.select(index); |
Also available in: Unified diff
ref #7849 use TermDisplayEnum.byKey()