ref #7829 fix missing getMatchModeName in TaxEditor
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 8 Nov 2018 12:15:52 +0000 (13:15 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 8 Nov 2018 12:15:52 +0000 (13:15 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java

index 3d6f7545860ee1fe5d4528931559e740e4a94a06..d663c8b1f668f402341b357a6678861b24af252a 100644 (file)
@@ -501,7 +501,7 @@ public class PreferencesUtil implements IPreferenceKeys {
         *            a {@link java.lang.Class} object.
         * @return a {@link eu.etaxonomy.cdm.strategy.match.IMatchStrategy} object.
         */
-       public static IMatchStrategy getMatchStrategy(Class clazz) {
+       public static IMatchStrategy getMatchStrategy(Class<?> clazz) {
                String className = clazz.getName();
                if (getBooleanValue(MATCH_STRATEGY_PREFIX + className)) {
                        IMatchStrategy matchStrategy = getDefaultMatchStrategy(clazz);
@@ -539,7 +539,7 @@ public class PreferencesUtil implements IPreferenceKeys {
                for (String fieldName : matchFields) {
                        setStringValue(
                                        getMatchStrategyFieldName(className, fieldName),
-                                       matchStrategy.getMatchMode(fieldName).name());
+                                       matchStrategy.getMatching().getFieldMatcher(fieldName).getMatchMode().name());
                }
        }