From: Katja Luther Date: Tue, 24 Jun 2014 07:49:27 +0000 (+0000) Subject: skip the dialog for setting the default nomenclatural code. The default is the botani... X-Git-Tag: 3.6.0~543 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/21db0158fa172e287c1d43d4fc7214cf480090d0 skip the dialog for setting the default nomenclatural code. The default is the botanical code. --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java index 3eec36ec2..0d96ea053 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java @@ -378,13 +378,17 @@ public class PreferencesUtil implements IPreferenceKeys { */ public static void checkNomenclaturalCode() { // First time Editor is opened, no nomenclatural code has been set + + if (PreferencesUtil.getPreferredNomenclaturalCode() == null) { + PreferencesUtil.setPreferredNomenclaturalCode(NomenclaturalCode.ICNAFP); + /* StoreUtil.info("No nomencatural code set."); Shell shell = StoreUtil.getShell(); - // Query user re: preferred nom. code + Query user re: preferred nom. code Dialog dialog = new InitNomenclaturalCodePrefDialog(shell); dialog.open(); @@ -398,7 +402,7 @@ public class PreferencesUtil implements IPreferenceKeys { "The following has been set as your preferred nomenclatural code:\n\n\t" + NomenclaturalCodeHelper .getDescription(code) - + "\n\nYou can change the nomenclatural code at any time in the \"Preferences\" menu."); + + "\n\nYou can change the nomenclatural code at any time in the \"Preferences\" menu.");*/ } }