Project

General

Profile

« Previous | Next » 

Revision c084a011

Added by Andreas Müller over 4 years ago

adapt TaxEditor to new name type

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
16 16
import org.apache.log4j.Logger;
17 17
import org.eclipse.swt.SWT;
18 18

  
19
import eu.etaxonomy.cdm.model.term.TermType;
20 19
import eu.etaxonomy.cdm.model.name.IBacterialName;
21 20
import eu.etaxonomy.cdm.model.name.ICultivarPlantName;
22 21
import eu.etaxonomy.cdm.model.name.IFungusName;
......
25 24
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
26 25
import eu.etaxonomy.cdm.model.name.Rank;
27 26
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
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;
41 29

  
42 30
/**
43 31
 * <p>NameDetailElement class.</p>
......
173 161
			INonViralName nonViralName, int style) {
174 162
		NomenclaturalCode code = nonViralName.getNomenclaturalCode();
175 163
		if (code != null){
176
			switch(nonViralName.getNomenclaturalCode()){
164
			switch(nonViralName.getNameType()){
177 165
			case ICNAFP :
178 166
				//nothing do add
179 167
				createBotanicalNameParts(formElement, nonViralName, style);

Also available in: Unified diff