Revision edce7749
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
435 | 435 |
return; |
436 | 436 |
} |
437 | 437 |
|
438 |
getView().getAddNewNameRegistrationButton().setEnabled(false); |
|
438 | 439 |
newTaxonNameForRegistration = TaxonNameFactory.NewNameInstance(RegistrationUIDefaults.NOMENCLATURAL_CODE, Rank.SPECIES()); |
439 | 440 |
newTaxonNameForRegistration.setNomenclaturalReference(getRepo().getReferenceService().find(workingset.getCitationUuid())); |
440 | 441 |
EntityChangeEvent nameSaveEvent = getTaxonNameStore().saveBean(newTaxonNameForRegistration, (AbstractView) getView()); |
... | ... | |
498 | 499 |
getRepo().getSession().clear(); // #7702 |
499 | 500 |
} |
500 | 501 |
newTaxonNameForRegistration = null; |
502 |
getView().getAddNewNameRegistrationButton().setEnabled(true); |
|
501 | 503 |
} |
502 | 504 |
} |
503 | 505 |
|
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java | ||
---|---|---|
246 | 246 |
addNewNameRegistrationButton = new Button("new name"); |
247 | 247 |
addNewNameRegistrationButton.setDescription("A name which is newly published in this publication."); |
248 | 248 |
addNewNameRegistrationButton.addClickListener( |
249 |
e -> getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this))); |
|
249 |
e -> { |
|
250 |
getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this)); |
|
251 |
|
|
252 |
} |
|
253 |
); |
|
250 | 254 |
|
251 | 255 |
existingNameRegistrationTypeLabel = new Label(); |
252 | 256 |
addExistingNameButton = new Button("existing name:"); |
... | ... | |
257 | 261 |
RegistrationWorkingsetAction.Action.start |
258 | 262 |
) |
259 | 263 |
) |
260 |
);
|
|
264 |
); |
|
261 | 265 |
|
262 | 266 |
existingNameCombobox = new LazyComboBox<TaxonName>(TaxonName.class); |
263 | 267 |
existingNameCombobox.addValueChangeListener( |
Also available in: Unified diff
fix #7594 RegistrationWorkingsetEditor new name button disbled when opening name popup editor