- added reference selection to Sequence DetailsView
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / SequenceGeneralDetailElement.java
index 4da1df00057de8edc138d2d8931cfda59f407f9c..2a4839e84aa49b6a6722b0507b3797bbe4a02148 100644 (file)
@@ -30,7 +30,7 @@ public class SequenceGeneralDetailElement extends AbstractCdmDetailElement<Seque
     private TextWithLabelElement textConsensusSequenceLength;
     private TextWithLabelElement textBarcodeSequence;
     private TextWithLabelElement textReferenceCitation;
-    private EntitySelectionElement<Reference> selectionNomenclaturalReference;
+    private EntitySelectionElement<Reference> selectionReference;
     private TextWithLabelElement textGeneticAccessNo;
     private TextWithLabelElement textBOLDProcessID;
     private TextWithLabelElement textBOLDLink;
@@ -59,6 +59,12 @@ public class SequenceGeneralDetailElement extends AbstractCdmDetailElement<Seque
         textConsensusSequence = formFactory.createTextWithLabelElement(formElement, "Consensus Sequence 5'->3'", entity.getConsensusSequence().getString(), style);
         textConsensusSequenceLength = formFactory.createTextWithLabelElement(formElement, "Consensus Seq. Length", entity.getConsensusSequence().getLength().toString(), style);
 //        textBarcodeSequence = formFactory.createTextWithLabelElement(formElement, "Barcode Sequence 5'->3'", entity.getBarcodeSequencePart().getString(), style);
+
+        selectionReference = formFactory
+                .createSelectionElement(Reference.class,
+                        getConversationHolder(), formElement, "Reference",
+                        null,
+                        EntitySelectionElement.ALL, style);
         textGeneticAccessNo = formFactory.createTextWithLabelElement(formElement, "Genetic Acc. No.", entity.getGeneticAccessionNumber(), style);
         textBOLDProcessID = formFactory.createTextWithLabelElement(formElement, "BOLD Process ID", entity.getBoldProcessId(), style);
 //        textBOLDLink = formFactory.createTextWithLabelElement(formElement, "BOLD URI", entity.getBoldUri().toString(), style);