Revision 2a7c9630
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/NomenclaturalCodePreferences.java | ||
---|---|---|
94 | 94 |
String value = getPreferenceStore().getString(IPreferenceKeys.PREFERRED_NOMENCLATURAL_CODE_KEY); |
95 | 95 |
CdmPreference pref = CdmPreference.NewDatabaseInstance( PreferencePredicate.NomenclaturalCode, value); |
96 | 96 |
ICdmApplicationConfiguration controller = CdmStore.getCurrentApplicationConfiguration(); |
97 |
if (controller == null){ |
|
98 |
return false; |
|
99 |
} |
|
97 | 100 |
IPreferenceService service = controller.getPreferenceService(); |
98 | 101 |
service.set(pref); |
99 | 102 |
} |
Also available in: Unified diff
ref #5969: check for db connection before ty to read the preferred nomenclatural code