Community
Participate
Working Groups
When user is in XML editor's source page, and user changes selection, a selection event is fired. Then the selection is updated in the design page, which then, in turn, fires another selection event. And vice versa. This means selection listeners such as outline & properties view are being notified/refreshed twice. Not only is selection fired twice, but the last selection event fired is a selection from the inactive page. So for example, Convert Line Delimiters does not work in the XML editor's source page because it is notified of the XML editor's design page selection, which is a TreeSelection. But it does work on the XML editor's design page because it is notified of the XML editor's source page ITextSelection.
Created attachment 147213 [details] Bug Fix Patch Modified code so that the listeners of the XML designer page are not called when the page is inactive. These changes lower the amount of times the properties and outline views are updated.
Bug 117869 which was blocked by this defect (bug 130773) seems to also be solved by this patch. Please verify this bug as well.
Created attachment 175359 [details] patch I think this patch might be a little safer.
Fixes checked into HEAD.