Page.NAME);
TaxonNode oldAcceptedTaxonNode = ((TaxonEditorInput) editor.getEditorInput()).getTaxonNode();
+ // check if taxon has no children
+ if(oldAcceptedTaxonNode.getCountChildren() > 0) {
+ EditorUtil.warningDialog("Prerequisite not met", this,
+ "The accepted taxon must not have any childen. You need to move all childen to " +
+ "another taxon node in the TaxonNavigator before attempting to turn the accepted " +
+ "taxon into a synonym.");
+ return null;
+ }
+
// Choose new accepted taxon
List<UUID> excludeTaxa = new ArrayList<UUID>();
excludeTaxa.add(oldAcceptedTaxonNode.getUuid());