Revision b6f47468
Added by Niels Hoffmann almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonNodeWizard.java | ||
---|---|---|
14 | 14 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
15 | 15 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
16 | 16 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
17 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
17 | 18 |
import eu.etaxonomy.taxeditor.ui.section.classification.TaxonNodeWizardPage; |
18 | 19 |
|
19 | 20 |
/** |
... | ... | |
43 | 44 |
getConversationHolder().bind(); |
44 | 45 |
ITreeNode parent = getParentTreeNode(); |
45 | 46 |
Taxon taxon = taxonNodePage.getTaxon(); |
46 |
TaxonNode taxonNode = parent.addChildTaxon(taxon, parent.getReference(), parent.getMicroReference(), null); |
|
47 |
|
|
48 |
|
|
49 |
generatedTaxonNodeUuid = CdmStore.getService(ITaxonNodeService.class).saveOrUpdate(taxonNode); |
|
47 |
try{ |
|
48 |
TaxonNode taxonNode = parent.addChildTaxon(taxon, parent.getReference(), parent.getMicroReference(), null); |
|
49 |
generatedTaxonNodeUuid = CdmStore.getService(ITaxonNodeService.class).saveOrUpdate(taxonNode); |
|
50 |
}catch(IllegalArgumentException e){ |
|
51 |
StoreUtil.warningDialog("Taxon already exists in classfication", getClass(), e.getMessage()); |
|
52 |
} |
|
50 | 53 |
} |
51 | 54 |
} |
52 | 55 |
|
Also available in: Unified diff
Buckminster is dead, long live Tycho. The complete build can now be fully automated with eclipse tycho, Thus we will be able to have continous integration for the editor and automated builds by jenkins and all the glory. Removed all buckminster related files.