Revision 6fa5c755
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
22 | 22 |
import eu.etaxonomy.cdm.persistence.hibernate.permission.Role; |
23 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
|
24 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
23 | 25 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
24 | 26 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
25 | 27 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
76 | 78 |
formElement, "Secundum", |
77 | 79 |
entity.getSec(), EntitySelectionElement.ALL, |
78 | 80 |
style); |
79 |
|
|
80 |
text_secundum_microreference = formFactory.createTextWithLabelElement( |
|
81 |
formElement, "Detail", |
|
82 |
entity.getSecMicroReference(),null, |
|
83 |
SWT.WRAP); |
|
84 |
|
|
81 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DISABLE_SEC)){ |
|
82 |
selection_secundum.setEnabled(false); |
|
83 |
} |
|
84 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SEC_DETAILS)){ |
|
85 |
text_secundum_microreference = formFactory.createTextWithLabelElement( |
|
86 |
formElement, "Detail", |
|
87 |
entity.getSecMicroReference(),null, |
|
88 |
SWT.WRAP); |
|
89 |
} |
|
85 | 90 |
|
86 | 91 |
checkbox_useNameCache = formFactory.createCheckbox(formElement, |
87 | 92 |
"Exclude Authorship", entity.isUseNameCache(), style); |
Also available in: Unified diff
ref #7793: add possibility to disable sec and do not show sec details