Project

General

Profile

« Previous | Next » 

Revision 8db3ccd6

Added by Katja Luther about 5 years ago

ref #7849: correct enabling of local prefs with no allowOverride and sortOrder for areas in distr. editor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
125 125
    public static void setStringValue(String name, String value) {
126 126
        if (value != null){
127 127
            getPreferenceStore().setValue(prefKey(name), value);
128
        }else{
129
            getPreferenceStore().setToDefault(name);
128 130
        }
129 131
    }
130 132

  
......
1633 1635
/**
1634 1636
 * @return
1635 1637
 */
1636
public static boolean isSortNamedAreaByOrderInVocabulary() {
1638
public static String getSortNamedAreasInDistributionEditor() {
1637 1639

  
1638
    return getBooleanValue(EditorPreferencePredicate.AreasSortedByIdInVocabulary.getKey());
1640
    return getStringValue(EditorPreferencePredicate.AreasSortedInDistributionEditor.getKey());
1639 1641
}
1640 1642

  
1641
public static void setSortNamedAreasByOrderInVocabulary(boolean isSortByVocabularyOrder) {
1642
    setBooleanValue(EditorPreferencePredicate.AreasSortedByIdInVocabulary.getKey(), isSortByVocabularyOrder);
1643
public static void setSortNamedAreasInDistributionEditor(String isSortByVocabularyOrder) {
1644
    setStringValue(EditorPreferencePredicate.AreasSortedInDistributionEditor.getKey(), isSortByVocabularyOrder);
1643 1645

  
1644 1646
}
1645 1647

  

Also available in: Unified diff