Project

General

Profile

« Previous | Next » 

Revision 37058586

Added by Andreas Müller over 3 years ago

rename SHOW_NAME_IN_SOURCE to SHOW_NAMESPACE_IN_SOURCE in taxeditor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/IPreferenceKeys.java
261 261
    public static final String DISABLE_MULTI_CLASSIFICATION = "eu.etaxonomy.taxeditor.classification.multi";
262 262

  
263 263
    public static final String SHOW_ID_IN_SOURCE = "eu.etaxonomy.taxeditor.source.detail.IdInSource";
264
    public static final String SHOW_NAME_IN_SOURCE = "eu.etaxonomy.taxeditor.source.detail.nameInSource";
264
    public static final String SHOW_NAMESPACE_IN_SOURCE = "eu.etaxonomy.taxeditor.source.detail.nameInSource";
265 265

  
266 266

  
267 267

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
80 80
 * @author p.ciardelli
81 81
 * @author n.hoffmann
82 82
 * @created 05.12.2008
83
 * @version 1.0
84 83
 */
85 84
public class PreferencesUtil implements IPreferenceKeys {
86 85

  
......
1978 1977
        setBooleanValue(SHOW_ID_IN_SOURCE, true);
1979 1978
    }
1980 1979

  
1981
    preference = getPreferenceFromDB(PreferencePredicate.ShowNameInSource);
1980
    preference = getPreferenceFromDB(PreferencePredicate.ShowNamespaceInSource);
1982 1981
    if (preference != null){
1983
        if (!getBooleanValue(SHOW_NAME_IN_SOURCE) ||  !preference.isAllowOverride()){
1984
            setBooleanValue(SHOW_NAME_IN_SOURCE, Boolean.valueOf(preference.getValue()));
1982
        if (!getBooleanValue(SHOW_NAMESPACE_IN_SOURCE) ||  !preference.isAllowOverride()){
1983
            setBooleanValue(SHOW_NAMESPACE_IN_SOURCE, Boolean.valueOf(preference.getValue()));
1985 1984
        }
1986 1985
    }else{
1987
        setBooleanValue(SHOW_NAME_IN_SOURCE, true);
1986
        setBooleanValue(SHOW_NAMESPACE_IN_SOURCE, true);
1988 1987
    }
1989 1988

  
1990 1989
    preference = getPreferenceFromDB(PreferencePredicate.DisableMultiClassification);

Also available in: Unified diff