Bug 543141 - Replace edit contents does not cancel
Summary: Replace edit contents does not cancel
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-03 04:32 EST by Ed Willink CLA
Modified: 2022-12-23 14:02 EST (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 2019-01-03 04:32:00 EST
While editing an auto-generated *.java file and after starting to re-auto-generate so that the file is deleted, but not yet recreated...

Touching the editor tab causes the 'do-you-want-to-save-contents' pop-up dialog. Yes => Save. No => Close. Reasonable.

However since neither Yes nor No reverts, I choose to close the dialog. This does No, closing the editor, advancing to the consistent editor deleted state. However since I closed rather than Yes-ed/No-ed, surely it should take me back to the pre-dialog state. I should be able to view the (unsaved) text, possibly even copy it somewhere. The editor should not just close.
Comment 1 Eclipse Genie CLA 2020-12-24 13:50:28 EST
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.
Comment 2 Ed Willink CLA 2020-12-24 15:05:10 EST
Cannot be stale until some JDT committer triages it.

I regularly find myself in the wanting to press the 'go-away-stupid-tool' button, so I hit close rather than the equally inappropriate Yes/No and lose work.

Fortunatelty GIT staging or local history or Undo may come to the rescue. But unfortunately Undo is now intermittent if the debugger has done an incremental recompile.
Comment 3 Eclipse Genie CLA 2022-12-22 16:23:45 EST
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.
Comment 4 Ed Willink CLA 2022-12-23 14:00:01 EST
Cannot be stale until some JDT committer triages it.
Comment 5 Ed Willink CLA 2022-12-23 14:02:14 EST
Changing to major since the current behavior leads to a loss of user work.