Project

General

Profile

« Previous | Next » 

Revision 6bf65877

Added by Katja Luther about 5 years ago

ref #8136: save citation of typeDesignation

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AbstractTypeDesignationElement.java
72 72
	        if (selection_reference == null){
73 73
    	        selection_reference = formFactory
74 74
                        .createSelectionElement(Reference.class, formElement, "Reference",
75
                                null, EntitySelectionElement.ALL, SWT.NULL);
75
                                entity.getCitation(), EntitySelectionElement.ALL, SWT.NULL);
76 76

  
77 77
                text_referenceDetail = formFactory.createTextWithLabelElement(
78 78
                    formElement, "Reference Detail", null, SWT.NULL);
......
135 135
        }
136 136

  
137 137
    }
138

  
138
    @Override
139
    public void handleEvent(Object eventSource) {
140
        if (eventSource == selection_reference) {
141
            getEntity().setCitation(selection_reference.getEntity());
142
            setEntity(entity);
143
        }
144
        if (eventSource == text_referenceDetail) {
145
            getEntity().setCitationMicroReference(text_referenceDetail.getText());
146
            setEntity(entity);
147
        }
148
    }
139 149

  
140 150
}

Also available in: Unified diff