Revision 18fbda82
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/reference/ReferencePopupEditor.java | ||
---|---|---|
132 | 132 |
inReferenceCombobox = new ToOneRelatedEntityCombobox<Reference>("In-reference", Reference.class); |
133 | 133 |
inReferenceCombobox.setWidth(100, Unit.PERCENTAGE); |
134 | 134 |
inReferenceCombobox.addClickListenerAddEntity(e -> getViewEventBus().publish(this, |
135 |
new ReferenceEditorAction(EditorActionType.ADD, null, inReferenceCombobox, this)
|
|
135 |
new ReferenceEditorAction(EditorActionType.ADD, e.getButton(), inReferenceCombobox, this)
|
|
136 | 136 |
)); |
137 | 137 |
inReferenceCombobox.addClickListenerEditEntity(e -> { |
138 | 138 |
if(inReferenceCombobox.getValue() != null){ |
... | ... | |
140 | 140 |
new ReferenceEditorAction( |
141 | 141 |
EditorActionType.EDIT, |
142 | 142 |
inReferenceCombobox.getValue().getUuid(), |
143 |
e.getButton(), |
|
143 | 144 |
inReferenceCombobox, |
144 | 145 |
this) |
145 | 146 |
); |
Also available in: Unified diff
AbstractEditorAction now with source button and target field