Project

General

Profile

« Previous | Next » 

Revision 92d4dbe0

Added by Andreas Kohlbecker almost 7 years ago

fix #6673 implementing the PopupEditorFactory and making all PopEditors and presenters POJOs

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java
9 9
import org.springframework.security.core.context.SecurityContextHolder;
10 10
import org.springframework.transaction.TransactionStatus;
11 11

  
12
import com.vaadin.spring.annotation.SpringComponent;
13
import com.vaadin.spring.annotation.ViewScope;
14

  
15 12
import eu.etaxonomy.cdm.api.application.CdmRepository;
16 13
import eu.etaxonomy.vaadin.ui.navigation.NavigationManager;
17 14
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean;
......
26 23
 * @param <V>
27 24
 *            type of the view this presenter governs
28 25
 */
29
@SpringComponent
30
@ViewScope
31 26
public abstract class AbstractPresenter<V extends ApplicationView> implements Serializable {
32 27

  
33 28

  
......
124 119
        return navigationManager;
125 120
    }
126 121

  
122
    /**
123
     * @param repo the repo to set
124
     */
125
    protected void setRepo(CdmRepository repo) {
126
        this.repo = repo;
127
    }
128

  
129
    /**
130
     * @param navigationManager the navigationManager to set
131
     */
132
    protected void setNavigationManager(NavigationManager navigationManager) {
133
        this.navigationManager = navigationManager;
134
    }
135

  
136

  
137

  
127 138
}

Also available in: Unified diff