return;
}
+ getView().getAddNewNameRegistrationButton().setEnabled(false);
newTaxonNameForRegistration = TaxonNameFactory.NewNameInstance(RegistrationUIDefaults.NOMENCLATURAL_CODE, Rank.SPECIES());
newTaxonNameForRegistration.setNomenclaturalReference(getRepo().getReferenceService().find(workingset.getCitationUuid()));
EntityChangeEvent nameSaveEvent = getTaxonNameStore().saveBean(newTaxonNameForRegistration, (AbstractView) getView());
getRepo().getSession().clear(); // #7702
}
newTaxonNameForRegistration = null;
+ getView().getAddNewNameRegistrationButton().setEnabled(true);
}
}
addNewNameRegistrationButton = new Button("new name");
addNewNameRegistrationButton.setDescription("A name which is newly published in this publication.");
addNewNameRegistrationButton.addClickListener(
- e -> getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this)));
+ e -> {
+ getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this));
+
+ }
+ );
existingNameRegistrationTypeLabel = new Label();
addExistingNameButton = new Button("existing name:");
RegistrationWorkingsetAction.Action.start
)
)
- );
+ );
existingNameCombobox = new LazyComboBox<TaxonName>(TaxonName.class);
existingNameCombobox.addValueChangeListener(