Project

General

Profile

« Previous | Next » 

Revision ae7e2680

Added by Cherian Mathew almost 9 years ago

ICdmDataChangeService, CdmUIDataChangeService, CdmDataChangeService : added new data change service with different services for the ui and non-ui states
CdmApplicationState, CdmStore : added data change service to app state
CdmChangeEvent, ICdmChangeListener : added change listener and even to fire in case of data changes
ICdmEntitySessionEnabled : extends new change service interface
ICdmEntitySession, CdmEntitySession : removed data change un/registration since this is now handled by the new data change service
BaseRemotingTest, MockCdmEntitySession, *Editor, *ViewPart, *Navigator : refactoring with new change listener
RemotingCdmHandler, RemotingCdmOperation, RemotingCdmUpdateOperation : added new handler / operation architecture base classes
AbstractUtility : added method for running async operation with callback to handler
RemotingChangeAcceptedTaxonToSynonymHandler,RemotingChangeAcceptedTaxonToSynonymOperation : first implementations of new handler / operation architecture
plugin.xml : added standalone and remoting handlers for ChangeAcceptedTaxonToSynonym
*Test : adapted for new handler / operation and change service

View differences:

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;
37
import eu.etaxonomy.cdm.api.application.CdmChangeEvent;
36 38
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
37 39
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
38 40
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
......
199 201
		conversation = CdmStore.createConversation();
200 202
		conversation.registerForDataStoreChanges(this);
201 203
		cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true);
202
        cdmEntitySession.registerForDataStoreChanges(this);
204
        CdmApplicationState.getCurrentDataChangeService().register(this);
203 205
		List<PolytomousKey> input = CdmStore.getService(IPolytomousKeyService.class).list(PolytomousKey.class, null, null, null, null);
204 206
		if(!viewer.getControl().isDisposed()){
205 207
		    viewer.setInput(input);
......
303 305
        return getKeys();
304 306
    }
305 307

  
308
    /* (non-Javadoc)
309
     * @see eu.etaxonomy.cdm.api.application.ICdmChangeListener#onChange(eu.etaxonomy.cdm.api.application.CdmChangeEvent)
310
     */
311
    @Override
312
    public void onChange(CdmChangeEvent event) {
313
        // TODO Auto-generated method stub
314

  
315
    }
316

  
306 317
}

Also available in: Unified diff