Project

General

Profile

« Previous | Next » 

Revision 437f2e6f

Added by Andreas Kohlbecker almost 7 years ago

#6562 restricting AbstractEditorPresenter to events coming from the related view

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/EditorSaveEvent.java
22 22

  
23 23
    private CommitEvent commitEvent;
24 24

  
25
    // FIXME this is only a iterim solution for the problem described in https://dev.e-taxonomy.eu/redmine/issues/6562
26
    private AbstractView view;
27

  
28

  
25 29
    /**
26 30
     * @param commitEvent
27 31
     */
28
    public EditorSaveEvent(CommitEvent commitEvent) {
32
    public EditorSaveEvent(CommitEvent commitEvent, AbstractView view) {
29 33
        this.commitEvent = commitEvent;
34
        this.view = view;
30 35
    }
31 36

  
32 37
    public CommitEvent getCommitEvent(){
33 38
        return commitEvent;
34 39
    }
35 40

  
41
    /**
42
     * @return the view
43
     */
44
    public AbstractView getView() {
45
        return view;
46
    }
47

  
36 48
}

Also available in: Unified diff