Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349962 - [editor] Use CS URIs rather than monikers for synchronization
Summary: [editor] Use CS URIs rather than monikers for synchronization
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: M3   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 12:37 EDT by Ed Willink CLA
Modified: 2013-05-20 11:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.