import eu.etaxonomy.cdm.database.DataSourceNotFoundException;
import eu.etaxonomy.cdm.database.ICdmDataSource;
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
-
import eu.etaxonomy.taxeditor.model.MementoHelper;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
NomenclaturalCode applicationNomenclaturalCode = PreferencesUtil.getPreferredNomenclaturalCode(true);
if( dataSourceNomenclaturalCode != null && ! dataSourceNomenclaturalCode.equals(applicationNomenclaturalCode)){
- PreferencesUtil.setPreferredNomenclaturalCode(dataSourceNomenclaturalCode);
+ PreferencesUtil.setPreferredNomenclaturalCode(dataSourceNomenclaturalCode, true);
MessagingUtils.informationDialog("Nomenclatural Code Change", "The Datasource that was just " +
"loaded has a different nomenclatural code than the one stored in Preferences. " +
"The nomenclatural code was changed in the application.");