Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344698 - [Compatibility] Undo sometimes suddenly stops working
Summary: [Compatibility] Undo sometimes suddenly stops working
Status: VERIFIED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 RC1   Edit
Assignee: Remy Suen CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 09:16 EDT by Remy Suen CLA
Modified: 2011-05-17 08:14 EDT (History)
2 users (show)

See Also:


Attachments
Context service handling patch v1 (4.81 KB, patch)
2011-05-04 14:35 EDT, Remy Suen CLA
no flags Details | Diff
PageSite patch v2 (1.33 KB, patch)
2011-05-11 11:06 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2011-05-04 09:16:49 EDT
Both Olivier and I have seen this problem from time to time. It seems if I unbind the 'EOF' command in the 'Keys' preference page (which is mapped to Ctrl+Z) then the problem goes away.
Comment 1 Remy Suen CLA 2011-05-04 10:12:05 EDT
Probably the same problem as bug 344704.
Comment 2 Remy Suen CLA 2011-05-04 12:37:14 EDT
1. Open a Java file.
2. Make the file dirty.
3. Ctrl+Z. It works as expected.
4. Run a program that prints to the console.
5. Activate the 'Console' view.
6. Click the 'Remove All Terminated Launches' tool item.
7. Activate the editor.
8. Make the file dirty.
9. Ctrl+Z doesn't work anymore. The workaround described in comment 0 resolves the problem.
Comment 3 Remy Suen CLA 2011-05-04 14:35:26 EDT
Created attachment 194751 [details]
Context service handling patch v1

This patch changes the part sites and page sites to have their own implementation of IContextService. This fixes the problem described by comment 2 and allows Ctrl+V to work again (see bug 344704) if the 'Git Repositories' view is closed.
Comment 4 Remy Suen CLA 2011-05-04 14:39:48 EDT
(In reply to comment #3)
> Created attachment 194751 [details]
> Context service handling patch v1

I've released this patch to HEAD but there are technically still some code changes necessary. That will be covered by bug 344704.
Comment 5 Remy Suen CLA 2011-05-11 11:06:29 EDT
Created attachment 195371 [details]
PageSite patch v2

Unfortunately, it seems I broke Ctrl+Z in 'Console' views in general. This patch will fix the problem.

Also uncovered bug 345435 but that seems to be broken in 3.x too. Will have to monitor it closely and see what's going on here.
Comment 6 Remy Suen CLA 2011-05-11 11:07:02 EDT
(In reply to comment #5)
> Created attachment 195371 [details]
> PageSite patch v2

Patch released to CVS HEAD.
Comment 7 Remy Suen CLA 2011-05-17 08:14:50 EDT
Verified with I20110516-1455 on Windows XP.