Revision f41433b9
Added by Alex Theys almost 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java | ||
---|---|---|
15 | 15 |
import org.eclipse.swt.SWT; |
16 | 16 |
|
17 | 17 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
18 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
|
18 | 19 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
19 | 20 |
import eu.etaxonomy.cdm.model.name.Rank; |
20 | 21 |
import eu.etaxonomy.cdm.model.name.ZoologicalName; |
... | ... | |
119 | 120 |
|
120 | 121 |
private void createSpecificNameParts(ICdmFormElement formElement, |
121 | 122 |
NonViralName nonViralName, int style) { |
122 |
switch(nonViralName.getNomenclaturalCode()){ |
|
123 |
case ICBN: |
|
124 |
createBotanicalNameParts(formElement, nonViralName, style); |
|
125 |
break; |
|
126 |
case ICZN: |
|
127 |
createZoologicalNameParts(formElement, nonViralName, style); |
|
128 |
break; |
|
123 |
NomenclaturalCode code = nonViralName.getNomenclaturalCode(); |
|
124 |
if (code != null){ |
|
125 |
switch(nonViralName.getNomenclaturalCode()){ |
|
126 |
case ICBN: |
|
127 |
createBotanicalNameParts(formElement, nonViralName, style); |
|
128 |
break; |
|
129 |
case ICZN: |
|
130 |
createZoologicalNameParts(formElement, nonViralName, style); |
|
131 |
break; |
|
132 |
} |
|
129 | 133 |
} |
130 | 134 |
} |
131 | 135 |
|
Also available in: Unified diff
AT:Committing changes post merge