Revision bc2df6ea
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java | ||
---|---|---|
1866 | 1866 |
|
1867 | 1867 |
public static EnabledComputedDescription getComputedDesciptionHandlingPreference(){ |
1868 | 1868 |
String defaultBehaviour= getStringValue(PreferencePredicate.EnableComputedDescription.getKey()); |
1869 |
EnabledComputedDescription computedDescriptionsEnabled = EnabledComputedDescription.byKey(defaultBehaviour); |
|
1869 |
EnabledComputedDescription computedDescriptionsEnabled = (EnabledComputedDescription)PreferencePredicate.EnableComputedDescription.getDefaultValue(); |
|
1870 |
if (StringUtils.isNotBlank(defaultBehaviour)){ |
|
1871 |
computedDescriptionsEnabled = EnabledComputedDescription.byKey(defaultBehaviour); |
|
1872 |
} |
|
1870 | 1873 |
return computedDescriptionsEnabled; |
1871 | 1874 |
|
1872 | 1875 |
} |
Also available in: Unified diff
ref #9630: make computed descriptions handling configurable - avoid IAE