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

Bug 339198

Summary: [breakpoints] Undo does not work after condition is saved in breakpoints view
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: DebugAssignee: Dani Megert <daniel_megert>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Deepak Azad CLA 2011-03-08 07:03:40 EST
- Create a breakpoint
- Open breakpoints view
- Type a condition for this new breakpoint e.g. "false". (Do not save at this point)
- Ctrl+Z => Undo works, the condition goes away
- Ctrl+Y => Redo works, the condition comes back
- Save the condition now (Ctrl+s) => Caret jumps to offset 0 - Bad
- Ctrl+Z => Nothing happens - Bad!
Comment 1 Markus Keller CLA 2011-03-09 13:22:36 EST
Build is e.g. I20110308-2000.

> - Save the condition now (Ctrl+s) => Caret jumps to offset 0 - Bad
That already happened in 3.6.2 (but there was no Undo at all in 3.6.2).
Comment 2 Dani Megert CLA 2011-03-14 06:35:17 EDT
>- Save the condition now (Ctrl+s) => Caret jumps to offset 0 - Bad
>- Ctrl+Z => Nothing happens - Bad!
As you should know: one problem per bug please ;-)

>- Save the condition now (Ctrl+s) => Caret jumps to offset 0 - Bad
This is bug 334851 and happens each time you save (not related to Undo/Redo).
Comment 3 Dani Megert CLA 2011-04-12 06:11:17 EDT
This is also caused by bug 334851: the whole view is recreated and hence the undo state is reset as well.

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