Summary: | Register the resourceChangeListener to ResourceChangeDispatcher with a phase when registering the listener with the Eclipse platform | ||
---|---|---|---|
Product: | [Automotive] Sphinx | Reporter: | Yue Ma <mayue.mail> |
Component: | Core | Assignee: | Project Inbox <sphinx-inbox> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | balazs.grill, idydieng |
Version: | 0.7.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | 397949 | ||
Bug Blocks: |
Description
Yue Ma
2013-03-04 12:34:14 EST
The following existing resource change listeners in Sphinx should be refactored to be dispatched by the resource change dispatcher so that the mentioned workarounds can be removed: * MetaModelDescriptorCacheUpdater ** Perform move/removal of metamodel descriptors in PRE phase ** Perform clearing of old metamodel descriptors in POST phase * ModelDescriptorSynchronizer ** Perform in MAIN phase ** Remove removal of cached metamodel descriptors in BasicModelDescriptorSynchronizerDelegate.handleFileChanged(int, IFile) and BasicModelDescriptorSynchronizerDelegate.handleFileRemoved(int, IFile) ** Remove move of cached metamodel descriptors in BasicModelDescriptorSynchronizerDelegate.handleFileMoved(int, IFile, IFile) * ModelSynchronizer ** Perform in MAIN phase ** Remove move of cached metamodel descriptors in BasicModelSynchronizerDelegate.handleFileMoved(int, IFile, IFile) * ContentTypeIdCachePurger ** Perform in PRE phase ** Remove removal of cached content type ids in MetaModelDescriptorRegistry.FileMetaModelDescriptorCache.moveDescriptor(IFile, IFile) and MetaModelDescriptorRegistry.FileMetaModelDescriptorCache.removeDescriptor(IFile) In addition, a similar mechanism as the resource change dispatcher should be introduced for resource set change listeners. This would enable to get rid of the removal of cached metamodel descriptors in ModelDescriptorSynchronizerComplement.handleModelResourceUnloaded(Collection<Resource>). Closed stale issue before migration |