Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349962

Summary: [editor] Use CS URIs rather than monikers for synchronization
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.0   
Target Milestone: M3   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-06-21 12:37:13 EDT
The current CST/AST synchronization in the editors relies on the ability to compute identical monikers from non-identical tree structures. This is hard and flaky.

Some from of synchronisation is needed since edits replace substantial CS sections.

Although the CS objects change, the CS URIs do not so a map of CS URI to AST element can be maintained and used to drive AST refreshes. This could render monikers almost obsolete eliminating their non-trivial creation algorithm and the need to define an extensibility mechanism for it.

Just need careful design of the CST model to provide good ID attributes so that the CS URIs are relatively stable for reorderings.
Comment 1 Ed Willink CLA 2011-11-07 17:18:30 EST
Pushed to master
Comment 2 Ed Willink CLA 2013-05-20 11:37:51 EDT
CLOSED after a year in the RESOLVED state.