Project

General

Profile

Revision 6e0d89ec

ID6e0d89ec1d1f069a33910b0b1da2e649b391a3a5
Parent 30189b61
Child 5c331673

Added by Katja Luther about 1 year ago

ref #7793: preference to disable id in source and name in source

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;
19
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
18 20
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
19 21
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
20 22
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
......
59 61
	@Override
60 62
	public void setEntity(DescriptionElementSource entity) {
61 63
		super.setEntity(entity);
62
		text_idInSource.setText(entity.getIdInSource());
63
		text_idNamespace.setText(entity.getIdNamespace());
64
		if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_ID_IN_SOURCE)){
65
		    text_idInSource.setText(entity.getIdInSource());
66
		}
67
		if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_IN_SOURCE)){
68
		    text_idNamespace.setText(entity.getIdNamespace());
69
		}
64 70

  
65 71
		selection_reference.setEntity(entity.getCitation());
66 72
		text_referenceDetail.setText(entity.getCitationMicroReference());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)