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

Bug 346200

Summary: Revert file after several undo's reverts to the state before Save Actions
Product: [Eclipse Project] JDT Reporter: Didier Loiseau <didierloiseau+eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Didier Loiseau CLA 2011-05-18 05:27:21 EDT
Build Identifier: 20100617-1415

If you save a file (which runs Save Actions), undo at least twice (the first time reverts the Save Actions, the second one reverts one of your changes) and then use "Revert file", it reverts to the state before Save Actions.

This is probably related to bug 344548.

Reproducible: Always

Steps to Reproduce:
1. Configure Save Actions
2. Perform some modification on a file, and ensure that your changes will trigger some Save Action
3. Save the file
4. Undo twice (as if you which to quickly see the state of your file before your modifications)
5. Trigger File > Revert
6. The file is now reverted to the state before Save Actions, which is probably not what you wanted (and you probably won't notice).
Comment 1 Dani Megert CLA 2011-05-18 06:48:28 EDT
Reproduced in I20110517-0800.

>This is probably related to bug 344548.
Yes.
Comment 2 Eclipse Genie CLA 2019-10-29 01:29:08 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.

--
The automated Eclipse Genie.