Revision 437f2e6f
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPopupEditor.java | ||
---|---|---|
145 | 145 |
public void preCommit(CommitEvent commitEvent) throws CommitException { |
146 | 146 |
logger.debug("preCommit"); |
147 | 147 |
// notify the presenter to start a transaction |
148 |
eventBus.publishEvent(new EditorPreSaveEvent(commitEvent)); |
|
148 |
eventBus.publishEvent(new EditorPreSaveEvent(commitEvent, AbstractPopupEditor.this));
|
|
149 | 149 |
} |
150 | 150 |
|
151 | 151 |
@Override |
152 | 152 |
public void postCommit(CommitEvent commitEvent) throws CommitException { |
153 | 153 |
try { |
154 | 154 |
// notify the presenter to persist the bean and to commit the transaction |
155 |
eventBus.publishEvent(new EditorSaveEvent(commitEvent)); |
|
155 |
eventBus.publishEvent(new EditorSaveEvent(commitEvent, AbstractPopupEditor.this));
|
|
156 | 156 |
|
157 | 157 |
// notify the NavigationManagerBean to close the window and to dispose the view |
158 | 158 |
eventBus.publishEvent(new DoneWithPopupEvent(AbstractPopupEditor.this, Reason.SAVE)); |
Also available in: Unified diff
#6562 restricting AbstractEditorPresenter to events coming from the related view