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/StartRegistrationPresenter.java
90 90
    @EventBusListenerMethod(filter = EditorActionTypeFilter.Add.class)
91 91
    public void onReferenceEditorActionAdd(ReferenceEditorAction event) {
92 92

  
93
        if(getView() == null || getView().getNewPublicationButton() != event.getSourceComponent()){
93
        if(getView() == null || getView().getNewPublicationButton() != event.getSource()){
94 94
            return;
95 95
        }
96 96

  
......
106 106
    @EventBusListenerMethod(filter = EditorActionTypeFilter.Remove.class)
107 107
    public void onReferenceEditorActionRemove(ReferenceEditorAction event) {
108 108

  
109
        if(getView().getRemoveNewPublicationButton() != event.getSourceComponent()){
109
        if(getView().getRemoveNewPublicationButton() != event.getSource()){
110 110
            return;
111 111
        }
112 112
        DeleteResult result = getRepo().getReferenceService().delete(newReference);
......
159 159
    @EventBusListenerMethod(filter = EditorActionTypeFilter.Add.class)
160 160
    public void onRegistrationEditorActionAdd(RegistrationEditorAction event) {
161 161

  
162
        if(getView().getContinueButton() != event.getSourceComponent()){
162
        if(getView().getContinueButton() != event.getSource()){
163 163
            return;
164 164
        }
165 165

  

Also available in: Unified diff