Project

General

Profile

« Previous | Next » 

Revision 154f5e57

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 renaming EntityEvents into EditorEvents to better express the purpose

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowPresenter.java
27 27
import eu.etaxonomy.cdm.model.reference.Reference;
28 28
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
29 29
import eu.etaxonomy.cdm.service.IRegistrationWorkingSetService;
30
import eu.etaxonomy.cdm.vaadin.event.ReferenceEvent;
30
import eu.etaxonomy.cdm.vaadin.event.ReferenceEditorAction;
31 31
import eu.etaxonomy.cdm.vaadin.event.ShowDetailsEvent;
32 32
import eu.etaxonomy.cdm.vaadin.event.registration.RegistrationWorkflowEvent;
33 33
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
......
91 91
    }
92 92

  
93 93
    @EventListener(condition = "#event.eventType ==T(eu.etaxonomy.cdm.vaadin.event.EntityEventType).ADD")
94
    public void onReferenceAddEvent(ReferenceEvent event) {
94
    public void onReferenceAddEvent(ReferenceEditorAction event) {
95 95
        Reference reference = ReferenceFactory.newGeneric();
96 96
        ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class);
97 97
        popup.showInEditor(reference);
98 98
    }
99 99

  
100 100
    @EventListener(condition = "#event.eventType ==T(eu.etaxonomy.cdm.vaadin.event.EntityEventType).EDIT")
101
    public void onReferenceEditEvent(ReferenceEvent event) {
101
    public void onReferenceEditEvent(ReferenceEditorAction event) {
102 102
        Reference reference = getRepo().getReferenceService().find(event.getEntityId());
103 103
        ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class);
104 104
        popup.showInEditor(reference);

Also available in: Unified diff