Bug 182907 - IDocument Position vs undo-redo for text
Summary: IDocument Position vs undo-redo for text
Status: RESOLVED DUPLICATE of bug 182905
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 05:48 EDT by Peter Ossipov CLA
Modified: 2007-04-18 05:49 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 Peter Ossipov CLA 2007-04-18 05:48:26 EDT
When working with IDocument interface you can use such a useful thing as Position. That is fine. I like it. 
Then there is a situation when I add the position and then edit the text and finally undo the text changes. In that case the position is being updated as normal, i.e. as if I just edited the text. So, that results in the position been somewhere but not where it was originally. So, could a proper undo-redo for positions been added and IPositionUpdaters are only consulted when a "proper" change to the text been made? 
Otherwise, the situation does not make much sense to me. And I have to listen to stack events and on undo-redo events restore the positions myself which I do not really enjoy.
Comment 1 Peter Ossipov CLA 2007-04-18 05:49:58 EDT

*** This bug has been marked as a duplicate of bug 182905 ***