Revision b7a38212
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java | ||
---|---|---|
18 | 18 |
import org.eclipse.swt.SWT; |
19 | 19 |
import org.joda.time.DateTime; |
20 | 20 |
|
21 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
|
22 | 21 |
import eu.etaxonomy.cdm.model.agent.Institution; |
23 | 22 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
24 | 23 |
import eu.etaxonomy.cdm.model.reference.Reference; |
... | ... | |
72 | 71 |
private DoiWithLabelElement text_doi; |
73 | 72 |
private UriWithLabelElement text_uri; |
74 | 73 |
private DateElement text_accessed; |
75 |
private EntitySelectionElement<AgentBase> selection_authorTeam;
|
|
74 |
private EntitySelectionElement<TeamOrPersonBase> selection_authorTeam;
|
|
76 | 75 |
private VerbatimTimePeriodElement element_timePeriod; |
77 | 76 |
private EntitySelectionElement<Reference> selection_inReference; |
78 | 77 |
private EntitySelectionElement<Institution> selection_institution; |
... | ... | |
130 | 129 |
// author team |
131 | 130 |
if(referenceType != null && !referenceType.equals(ReferenceType.Journal) && !referenceType.equals(ReferenceType.PrintSeries) ) { |
132 | 131 |
selection_authorTeam = formFactory |
133 |
.createSelectionElement(AgentBase.class,//getConversationHolder(),
|
|
132 |
.createSelectionElement(TeamOrPersonBase.class,//getConversationHolder(),
|
|
134 | 133 |
formElement, "Author", |
135 | 134 |
entity.getAuthorship(), |
136 | 135 |
EntitySelectionElement.ALL, style); |
... | ... | |
434 | 433 |
// selections |
435 | 434 |
else if (eventSource == selection_authorTeam) { |
436 | 435 |
getEntity().setAuthorship( |
437 |
(TeamOrPersonBase) selection_authorTeam.getEntity());
|
|
436 |
selection_authorTeam.getEntity()); |
|
438 | 437 |
} else if (eventSource == selection_inReference) { |
439 | 438 |
getEntity().setInReference(selection_inReference.getSelection()); |
440 | 439 |
} else if (eventSource == selection_inSeries) { |
Also available in: Unified diff
ref #4545: reference author is of type teamOrPerson