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/navigator/TaxonNavigator.java
28 28
import org.eclipse.ui.PartInitException;
29 29
import org.eclipse.ui.navigator.CommonNavigator;
30 30

  
31
import eu.etaxonomy.cdm.api.application.CdmApplicationState;
32
import eu.etaxonomy.cdm.api.application.CdmChangeEvent;
31 33
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
32 34
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
33 35
import eu.etaxonomy.cdm.api.service.IClassificationService;
......
143 145
		}
144 146
		if (CdmStore.isActive() && cdmEntitySession == null) {
145 147
		    cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true);
146
		    cdmEntitySession.registerForDataStoreChanges(TaxonNavigator.this);
148
		    CdmApplicationState.getCurrentDataChangeService().register(this);
147 149
		}
148 150
		CdmStore.getLoginManager().addObserver(this);
149 151
	}
......
511 513
        }
512 514
        return null;
513 515
    }
516

  
517
    /* (non-Javadoc)
518
     * @see eu.etaxonomy.cdm.api.application.ICdmChangeListener#onChange(eu.etaxonomy.cdm.api.application.CdmChangeEvent)
519
     */
520
    @Override
521
    public void onChange(CdmChangeEvent event) {
522
        // TODO Auto-generated method stub
523

  
524
    }
514 525
}

Also available in: Unified diff