Project

General

Profile

« Previous | Next » 

Revision d7ad25d9

Added by Katja Luther over 2 years ago

ref #9838: change order of ui element creation and setting entity in collection elements

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceReferenceCollectionDetailElement.java
44 44
                        null, EntitySelectionElement.SELECTABLE|EntitySelectionElement.EDITABLE, style);
45 45
        text_referenceDetail = formFactory.createTextWithLabelElement(
46 46
                formElement, "Reference Detail", null, SWT.NULL);
47
        if (entity != null){
48
        	setEntity(entity);
49
        }
47 50
    }
48 51

  
49 52
    @Override
50 53
    public void setEntity(Reference entity) {
51 54
        this.entity = entity;
52
        selection_reference.setEntity(entity);
53
        text_referenceDetail.setText(entity.getReferenceAbstract());
55
        if(selection_reference != null){
56
        	selection_reference.setEntity(entity);
57
        	text_referenceDetail.setText(entity.getReferenceAbstract());
58
        }
59
        
54 60
    }
55 61

  
56 62
    @Override

Also available in: Unified diff