Preparatory work for ticket #1347.
authorem.lee <em.lee@localhost>
Fri, 8 Jan 2010 16:41:33 +0000 (16:41 +0000)
committerem.lee <em.lee@localhost>
Fri, 8 Jan 2010 16:41:33 +0000 (16:41 +0000)
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java

index 18d6144071de631caf3067bb204ea7db1295d2a3..d64985e218376f7803462d29f7a24122b6722139 100644 (file)
@@ -57,7 +57,8 @@ public class PreferencesUtil {
        public static final String TAXON_SERVICE_CONFIGURATOR_SYNONYMS = "taxonServiceConfigurator.doSynonyms";\r
        public static final String TAXON_SERVICE_CONFIGURATOR_NAMES = "taxonServiceConfigurator.doNamesWithoutTaxa";\r
        public static final String TAXON_SERVICE_CONFIGURATOR_COMMON_NAMES = "taxonServiceConfigurator.doTaxaByCommonNames";\r
-\r
+       public static final String TAXON_SERVICE_CONFIGURATOR_ORPHANED_TAXA = "taxonServiceConfigurator.doTaxaByOrphanedTaxa";\r
+       \r
        public static final String HIDE_DATASOURCE_CHOOSER = "dataSourceChooser.hide";\r
 \r
        public static final String PREFERRED_TERMS_CHANGE = "preferred_terms";\r
@@ -252,6 +253,7 @@ public class PreferencesUtil {
                configurator.setDoSynonyms(getPreferenceStore().getBoolean(TAXON_SERVICE_CONFIGURATOR_SYNONYMS));\r
                configurator.setDoNamesWithoutTaxa(getPreferenceStore().getBoolean(TAXON_SERVICE_CONFIGURATOR_NAMES));\r
                configurator.setDoTaxaByCommonNames(getPreferenceStore().getBoolean(TAXON_SERVICE_CONFIGURATOR_COMMON_NAMES));                  \r
+               configurator.setDoTaxaByOrphanedTaxa(getPreferenceStore().getBoolean(TAXON_SERVICE_CONFIGURATOR_ORPHANED_TAXA));\r
 \r
                return configurator;\r
        }\r
@@ -267,6 +269,7 @@ public class PreferencesUtil {
                configurator.setDoSynonyms(true);\r
                configurator.setDoNamesWithoutTaxa(true);\r
                configurator.setDoTaxaByCommonNames(true);\r
+               configurator.setDoTaxaByOrphanedTaxa(true);\r
                \r
                // DEFAULT VALUES               \r
                // match mode default only\r
@@ -291,6 +294,7 @@ public class PreferencesUtil {
                getPreferenceStore().setValue(TAXON_SERVICE_CONFIGURATOR_SYNONYMS, configurator.isDoSynonyms());\r
                getPreferenceStore().setValue(TAXON_SERVICE_CONFIGURATOR_NAMES, configurator.isDoNamesWithoutTaxa());\r
                getPreferenceStore().setValue(TAXON_SERVICE_CONFIGURATOR_COMMON_NAMES, configurator.isDoTaxaByCommonNames());\r
+               getPreferenceStore().setValue(TAXON_SERVICE_CONFIGURATOR_ORPHANED_TAXA, configurator.isDoTaxaByOrphanedTaxa());\r
        }\r
 \r
        /**\r