Revision b2e5f9bf
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/PersonDetailElement.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
19 | 19 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 |
import eu.etaxonomy.taxeditor.ui.element.OrcidWithLabelElement; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
22 | 23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement; |
23 | 24 |
|
... | ... | |
38 | 39 |
private TextWithLabelElement text_prefix; |
39 | 40 |
private TextWithLabelElement text_suffix; |
40 | 41 |
private TextWithLabelElement text_initials; |
42 |
private OrcidWithLabelElement text_orcid; |
|
41 | 43 |
|
42 | 44 |
private Collection<Object> excludeFromIrrelevantToggleableObjects; |
43 | 45 |
|
... | ... | |
80 | 82 |
"Initials", entity.getInitials(), SWT.NULL); |
81 | 83 |
text_prefix = formFactory.createTextWithLabelElement(formElement, |
82 | 84 |
"Prefix", entity.getPrefix(), SWT.NULL); |
83 |
text_suffix = formFactory.createTextWithLabelElement(formElement,
|
|
84 |
"Suffix", entity.getSuffix(), SWT.NULL); |
|
85 |
text_orcid = formFactory.createOrcidWithLabelElement(formElement, "ORCID", entity.getOrcid(), SWT.NULL);
|
|
86 |
|
|
85 | 87 |
} |
86 | 88 |
|
87 | 89 |
/** {@inheritDoc} */ |
... | ... | |
116 | 118 |
getEntity().setPrefix(text_prefix.getText()); |
117 | 119 |
} else if (eventSource == text_suffix) { |
118 | 120 |
getEntity().setSuffix(text_suffix.getText()); |
119 |
} |
|
121 |
}else if (eventSource == text_orcid) { |
|
122 |
getEntity().setOrcid(text_orcid.parseText()); |
|
123 |
} |
|
120 | 124 |
|
121 | 125 |
//if (eventSource != toggleable_cache) { |
122 | 126 |
if (!getEntity().isProtectedTitleCache()){ |
Also available in: Unified diff
ref #8667: add orcid to person detail element