Bug 318827 - Broken Undo/Redo when using Compare Editor
Summary: Broken Undo/Redo when using Compare Editor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 18:40 EDT by Daniel Alvarez Arribas CLA
Modified: 2019-09-06 16:10 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 Daniel Alvarez Arribas CLA 2010-07-04 18:40:26 EDT
Build Identifier: 

Undo/Redo functions do not work with changes done using the Compare Editor

Reproducible: Always

Steps to Reproduce:
1. Create two files within your workspace:

file1.txt<<EOF
This is line 2.
This is a much better line 3.
This is line 4.
This is line 4a and it is new.
This is line 5.
EOF

file2.txt<<EOF
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
EOF

2. If not already open, open a project explorer, or, if necessary, refresh the one that's already open.

3. In the project explorer, select both files, and right click on the selection.

4. A context menu opens. In the context menu, select "Compare with -> Each other"

5. A Compare Editor opens. 

   Select the first change (in file2.txt), and click on the trim bar button "Copy Current Change from Right to Left"

   Select the second change (in file1.txt), and click on the trim bar button "Copy Current Change from Left to Right"

   Finally, select the third change (in file1.txt), and again click on the trim bar button "Copy Current Change from Left to Right"

Both files should be rendered with identical content now.

6. From the main menu, now select "Edit -> Undo".

Wrongly, the first, change is inverted, instead of the last one. Moreover, reverting the other changes is impossible, since they have not been recorded.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:10:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.