Project

General

Profile

« Previous | Next » 

Revision bcd7cc5a

Added by Patrick Plitzner over 4 years ago

Fix compile errors

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java
76 76
				entity.isProtectedAuthorshipCache(), style);
77 77
	        addElement(toggleable_cache);
78 78
	   }
79
	    NomenclaturalCode code = entity.getNomenclaturalCode();
79
	    NomenclaturalCode code = entity.getNameType();
80 80

  
81 81
	    if (!config.isSimpleDetailsViewActivated() || config.isAuthorshipSectionActivated()){
82 82
            selectionCombinationAuthor = formFactory.createSelectionElementWithAbbreviatedTitle(TeamOrPersonBase.class,
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
26 26
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
27 27
import eu.etaxonomy.cdm.model.term.TermType;
28 28
import eu.etaxonomy.cdm.strategy.parser.ParserProblem;
29
import eu.etaxonomy.taxeditor.preference.NameDetailsConfigurator;
30
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
31
import eu.etaxonomy.taxeditor.store.StoreUtil;
32
import eu.etaxonomy.taxeditor.ui.combo.term.TermComboElement;
33
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
34
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement;
35
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
36
import eu.etaxonomy.taxeditor.ui.element.IEnableableFormElement;
37
import eu.etaxonomy.taxeditor.ui.element.ISelectableElement;
38
import eu.etaxonomy.taxeditor.ui.element.SelectionArbitrator;
39
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
40
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement;
29 41

  
30 42
/**
31 43
 * <p>NameDetailElement class.</p>
......
159 171

  
160 172
	private void createSpecificNameParts(ICdmFormElement formElement,
161 173
			INonViralName nonViralName, int style) {
162
		NomenclaturalCode code = nonViralName.getNomenclaturalCode();
174
		NomenclaturalCode code = nonViralName.getNameType();
163 175
		if (code != null){
164
			switch(nonViralName.getNameType()){
176
			switch(code){
165 177
			case ICNAFP :
166 178
				//nothing do add
167 179
				createBotanicalNameParts(formElement, nonViralName, style);
......
233 245
	}
234 246

  
235 247
	private void createInfragenerericEpithetControls(ICdmFormElement element, INonViralName nonViralName, int style){
236
		if (nonViralName.getNomenclaturalCode() == null || nonViralName.getNomenclaturalCode().equals(NomenclaturalCode.ICZN)){
248
		if (nonViralName.getNameType() == null || nonViralName.getNameType().equals(NomenclaturalCode.ICZN)){
237 249
			if(nonViralName.getRank() != null && nonViralName.getRank().isLower(Rank.GENUS()) ){
238 250
				text_infragenericEpithet = formFactory.createTextWithLabelElement(element, "Infrageneric Epithet", nonViralName.getInfraGenericEpithet(), style);
239 251
			}

Also available in: Unified diff