Project

General

Profile

« Previous | Next » 

Revision 47230e63

Added by Katja Luther about 6 years ago

ref #7215: check for all misapplied names in details element

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java
123 123

  
124 124
	@Override
125 125
	public void handleEvent(Object eventSource) {
126
		if (getEntity().getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())){
126
		if (getEntity().getType().isMisappliedNameOrInvalidDesignation()){
127 127
			 if (eventSource == secReference) {
128 128
				getEntity().setCitation(secReference.getSelection());
129 129
			} else if (eventSource == text_secundum_microreference) {
......
132 132
		        taxon.setSecMicroReference(text_sensu_microreference.getText());
133 133
			} else if (eventSource == sensuReference) {
134 134
				taxon.setSec(sensuReference.getSelection());
135
			} else if (eventSource == combo_taxonRelationshipType) {
135
			} else if (eventSource == combo_taxonRelationshipType ) {
136 136
			    getEntity().setType(combo_taxonRelationshipType.getSelection().getType());
137
        }
137
			} else if ( eventSource == combo_misappliedRelationshipType) {
138
                getEntity().setType(combo_misappliedRelationshipType.getSelection());
139
            }
138 140
		}else{
139 141
			if (eventSource == selection_relatedTaxon){
140 142
				boolean inverse = getTaxonRelationshipTypeInverseContainer().isInverse();

Also available in: Unified diff