Community
Participate
Working Groups
Build ID: N20090112-2000 Steps To Reproduce: 1. Open two UTF-8 java files in compare editor. 2. Change encoding in one pane to UTF-16. 3. Structured differences viewer is not updated.
Created attachment 122539 [details] Patch_v01
Created attachment 122678 [details] Patch_v02 I removed new API since there is no need to expose this functionality.
The fix looks good. I would update javadocs to be the same as in 3.4.x stream.
Created attachment 122787 [details] Patch_v03 Adding javadoc as Szymon suggested. Tom, could you have a look and release it?
The last patch is in HEAD, I've got few comment though: - filed bug 261347 as I'm not comfortable with the way Undo works for Set Encoding. It's bug against Platform/UI. - recalculating the diffs it time consuming and we have to be careful when doing it on each encoding change. However, given the fact the action is not used as often as e.g. Save (see bug 176690) I guess we can get away with it. - Pawel filed bug 261199 about finding a better way to notify StructureDiffViewer