Revision 18fbda82
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/reference/ReferenceEditorPresenter.java | ||
---|---|---|
143 | 143 |
@EventBusListenerMethod |
144 | 144 |
public void onReferenceEditorAction(ReferenceEditorAction editorAction) { |
145 | 145 |
|
146 |
if(!isFromOwnView(editorAction) || editorAction.getSourceComponent() == null){
|
|
146 |
if(!isFromOwnView(editorAction) || editorAction.getTarget() == null){
|
|
147 | 147 |
return; |
148 | 148 |
} |
149 | 149 |
|
150 |
if(ToOneRelatedEntityField.class.isAssignableFrom(editorAction.getSourceComponent().getClass())){
|
|
150 |
if(ToOneRelatedEntityField.class.isAssignableFrom(editorAction.getTarget().getClass())){
|
|
151 | 151 |
if(editorAction.isAddAction()){ |
152 | 152 |
inReferencePopup = getNavigationManager().showInPopup(ReferencePopupEditor.class, getView()); |
153 | 153 |
inReferencePopup.loadInEditor(null); |
Also available in: Unified diff
AbstractEditorAction now with source button and target field