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

Bug 481932

Summary: Java compare editor should block Toggle Word Wrap (Alt+Shift+Y) shortcut
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, kon, loskutov, markus.kell.r
Version: 4.6   
Target Milestone: 4.6 M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 35779    
Bug Blocks:    

Description Markus Keller CLA 2015-11-11 09:16:42 EST
In a "Java Source Compare" editor (both sides Java files), Alt+Shift+Y toggles word wrap. The shortcut should be blocked, since word wrap isn't supported in compare editors.
Comment 1 Andrey Loskutov CLA 2015-11-11 09:22:36 EST
Markus, do you have a hint how (or where) to do so?
Comment 2 Markus Keller CLA 2015-11-11 11:43:01 EST
(In reply to Andrey Loskutov from comment #1)
> Markus, do you have a hint how (or where) to do so?

I guessed it's somewhere in the Java merge viewer implementation, and when I saw the class, the fix was trivial: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=a5c7dfaf05dd6a538b0798d59bb1b05d0c65c5a6