Revision d02788a3
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java | ||
---|---|---|
245 | 245 |
|
246 | 246 |
addNewNameRegistrationButton = new Button("new name"); |
247 | 247 |
addNewNameRegistrationButton.setDescription("A name which is newly published in this publication."); |
248 |
Stack<EditorActionContext> context = new Stack<EditorActionContext>(); |
|
249 |
context.push(new EditorActionContext( |
|
250 |
null, |
|
251 |
this) |
|
252 |
); |
|
248 | 253 |
addNewNameRegistrationButton.addClickListener( |
249 | 254 |
e -> { |
250 |
getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this)); |
|
255 |
getViewEventBus().publish(this, new TaxonNameEditorAction(EditorActionType.ADD, null, addNewNameRegistrationButton, null, this, context));
|
|
251 | 256 |
|
252 | 257 |
} |
253 | 258 |
); |
Also available in: Unified diff
ref #7630 fixing creation of blocking registrations realted to new unsaved names