Revision 3b17b230
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/vaadin/ui/view/PopupEditorFactory.java | ||
---|---|---|
28 | 28 |
import com.vaadin.spring.annotation.UIScope; |
29 | 29 |
|
30 | 30 |
import eu.etaxonomy.cdm.api.application.CdmRepository; |
31 |
import eu.etaxonomy.cdm.service.IRegistrationWorkingSetService; |
|
31 | 32 |
import eu.etaxonomy.cdm.service.ISpecimenTypeDesignationWorkingSetService; |
33 |
import eu.etaxonomy.cdm.vaadin.view.name.NameTypeDesignationPresenter; |
|
32 | 34 |
import eu.etaxonomy.cdm.vaadin.view.name.SpecimenTypeDesignationWorkingsetEditorPresenter; |
33 | 35 |
import eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter; |
34 | 36 |
import eu.etaxonomy.vaadin.mvp.AbstractPopupEditor; |
... | ... | |
67 | 69 |
@Autowired |
68 | 70 |
private ISpecimenTypeDesignationWorkingSetService specimenTypeDesignationWorkingSetService; |
69 | 71 |
|
72 |
@Autowired |
|
73 |
private IRegistrationWorkingSetService registrationWorkingSetService; |
|
74 |
|
|
70 | 75 |
@Autowired |
71 | 76 |
@Lazy |
72 | 77 |
private NavigationManager navigationManager; |
... | ... | |
79 | 84 |
private Field specimenTypeDesignationWorkingSetServiceField; |
80 | 85 |
private Method viewInjectPresenterMethod; |
81 | 86 |
|
87 |
private Field Field; |
|
88 |
|
|
82 | 89 |
private Method viewInitMethod; |
83 | 90 |
|
84 | 91 |
public PopupEditorFactory(){ |
... | ... | |
113 | 120 |
specimenTypeDesignationWorkingSetServiceField = SpecimenTypeDesignationWorkingsetEditorPresenter.class.getDeclaredField("specimenTypeDesignationWorkingSetService"); |
114 | 121 |
specimenTypeDesignationWorkingSetServiceField.setAccessible(true); |
115 | 122 |
|
123 |
Field = NameTypeDesignationPresenter.class.getDeclaredField("registrationWorkingSetService"); |
|
124 |
Field.setAccessible(true); |
|
125 |
|
|
116 | 126 |
} catch (NoSuchFieldException | SecurityException | NoSuchMethodException e) { |
117 | 127 |
throw new RuntimeException("Severe error during initialization. Please check the classes AbstractPresenter, AbstractEditorPresenter, AbstractView for modificactions.", e); |
118 | 128 |
} |
... | ... | |
167 | 177 |
if(SpecimenTypeDesignationWorkingsetEditorPresenter.class.equals(presenterClass)){ |
168 | 178 |
specimenTypeDesignationWorkingSetServiceField.set(presenter, specimenTypeDesignationWorkingSetService); |
169 | 179 |
} |
180 |
if(NameTypeDesignationPresenter.class.equals(presenterClass)){ |
|
181 |
Field.set(presenter, registrationWorkingSetService); |
|
182 |
} |
|
170 | 183 |
} |
171 | 184 |
|
172 | 185 |
/** |
Also available in: Unified diff
ref #6740 service methods to load NameTypeDesignations for Registrations