Project

General

Profile

« Previous | Next » 

Revision 185eb33b

Added by Katja Luther over 5 years ago

ref #7849: improve DB preference handling and use editorpreferencePredicates keys also for local preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceElement.java
15 15

  
16 16
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
17 17
import eu.etaxonomy.cdm.model.name.TaxonName;
18
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
18
import eu.etaxonomy.taxeditor.preference.EditorPreferencePredicate;
19 19
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
20 20
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
21 21
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
......
61 61
	@Override
62 62
	public void setEntity(DescriptionElementSource entity) {
63 63
		super.setEntity(entity);
64
		if (PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_ID_IN_SOURCE)){
64
		if (PreferencesUtil.getBooleanValue(EditorPreferencePredicate.ShowIdInSource.getKey())){
65 65
		    text_idInSource.setText(entity.getIdInSource());
66 66
		}
67
		if (PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_NAMESPACE_IN_SOURCE)){
67
		if (PreferencesUtil.getBooleanValue(EditorPreferencePredicate.ShowNamespaceInSource.getKey())){
68 68
		    text_idNamespace.setText(entity.getIdNamespace());
69 69
		}
70 70

  

Also available in: Unified diff