Revision 8c8ead8a
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/PolytomousKeyViewPart.java | ||
---|---|---|
33 | 33 |
import org.eclipse.ui.handlers.IHandlerService; |
34 | 34 |
import org.eclipse.ui.part.ViewPart; |
35 | 35 |
|
36 |
import eu.etaxonomy.cdm.api.application.CdmApplicationState; |
|
36 | 37 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent; |
37 | 38 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action; |
39 |
import eu.etaxonomy.cdm.api.application.ICdmChangeListener; |
|
38 | 40 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
39 | 41 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
40 | 42 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService; |
... | ... | |
56 | 58 |
* |
57 | 59 |
*/ |
58 | 60 |
public class PolytomousKeyViewPart extends ViewPart implements |
59 |
IConversationEnabled, ICdmEntitySessionEnabled, IPostOperationEnabled { |
|
61 |
IConversationEnabled, ICdmEntitySessionEnabled, IPostOperationEnabled, |
|
62 |
ICdmChangeListener { |
|
60 | 63 |
|
61 | 64 |
private class FilterModifyListener implements ModifyListener{ |
62 | 65 |
@Override |
... | ... | |
201 | 204 |
conversation = CdmStore.createConversation(); |
202 | 205 |
conversation.registerForDataStoreChanges(this); |
203 | 206 |
cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true); |
207 |
CdmApplicationState.getCurrentDataChangeService().register(this); |
|
204 | 208 |
|
205 | 209 |
List<PolytomousKey> input = CdmStore.getService(IPolytomousKeyService.class).list(PolytomousKey.class, null, null, null, null); |
206 | 210 |
if(!viewer.getControl().isDisposed()){ |
... | ... | |
252 | 256 |
if(cdmEntitySession != null) { |
253 | 257 |
cdmEntitySession.dispose(); |
254 | 258 |
} |
259 |
CdmApplicationState.getCurrentDataChangeService().unregister(this); |
|
255 | 260 |
super.dispose(); |
256 | 261 |
} |
257 | 262 |
|
Also available in: Unified diff
Update ICdmEntitySessionEnabled to no longer extend ICdmChangeListener