Project

General

Profile

« Previous | Next » 

Revision 18fbda82

Added by Andreas Kohlbecker almost 6 years ago

AbstractEditorAction now with source button and target field

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/StartRegistrationViewBean.java
90 90

  
91 91
        newPublicationButton = new Button("New");
92 92
        newPublicationButton.addClickListener( e -> getViewEventBus().publish(this,
93
                new ReferenceEditorAction(EditorActionType.ADD, newPublicationButton, this)
93
                new ReferenceEditorAction(EditorActionType.ADD, newPublicationButton, null, this)
94 94
                ));
95 95
        newPublicationButton.setCaption("New");
96 96
        newPublicationButton.setWidth(ELEMENT_WIDTH);
......
102 102
        removeNewPublicationButton.setStyleName(ValoTheme.BUTTON_DANGER);
103 103
        removeNewPublicationButton.setWidth(ELEMENT_WIDTH);
104 104
        removeNewPublicationButton.addClickListener( e -> getViewEventBus().publish(this,
105
                new ReferenceEditorAction(EditorActionType.REMOVE, removeNewPublicationButton, this)
105
                new ReferenceEditorAction(EditorActionType.REMOVE, removeNewPublicationButton, referenceCombobox, this)
106 106
                ));
107 107

  
108 108
        removeNewPublicationButton.setVisible(false);
......
139 139
                        // passing the refId is hack, bit for some reason the presenter is always referring to the wrong view
140 140
                        refUuid,
141 141
                        continueButton,
142
                        null,
142 143
                        StartRegistrationViewBean.this)
143 144
                );
144 145
              }

Also available in: Unified diff