Revision a4f3f99c
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AbstractOriginalSourceElement.java | ||
---|---|---|
14 | 14 |
import org.eclipse.swt.SWT; |
15 | 15 |
import org.eclipse.swt.events.SelectionListener; |
16 | 16 |
|
17 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
|
17 | 18 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase; |
18 | 19 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceType; |
20 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
19 | 21 |
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement; |
20 | 22 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
21 | 23 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
68 | 70 |
.createEnumComboElement(OriginalSourceType.class, |
69 | 71 |
formElement, new OriginalSourceTypeComparator(getEntity()), style); |
70 | 72 |
super.createControls(formElement, style); |
71 |
text_idInSource = formFactory.createTextWithLabelElement(formElement, "ID in Source", null, style); |
|
72 |
text_idNamespace = formFactory.createTextWithLabelElement(formElement, "ID Namespace", null, style); |
|
73 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowIdInSource.getKey())){ |
|
74 |
text_idInSource = formFactory.createTextWithLabelElement(formElement, "ID in Source", null, style); |
|
75 |
} |
|
76 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowNamespaceInSource.getKey())){ |
|
77 |
text_idNamespace = formFactory.createTextWithLabelElement(formElement, "ID Namespace", null, style); |
|
78 |
} |
|
73 | 79 |
text_originaleNameString = formFactory.createTextWithLabelElement( |
74 | 80 |
formElement, "Original Information", null, SWT.NULL); |
75 | 81 |
|
Also available in: Unified diff
ref #8294: add preference page for id in namespace and namespace in source