Fix traverse in multi page editors#3552
Fix traverse in multi page editors#3552Christopher-Hermann wants to merge 1 commit intoeclipse-platform:masterfrom
Conversation
control.traverse on a CTabFolder in the MultiPageEditor is navigation up the the outer CTabFolder itself. This is causing several issues: Setting the page for example to the second-to-last is changing the page in the multipage editor. Then the traverse direction is changed causing the outer tab to move in the wrong direction. Furthermore on the outer tab you cannot jump from the last tab to the very first tab.
|
@fedejeanne I saw that you introduced the fix that enables to navigate from the last to the first tab: Maybe you can have a look on my fix. I'm not really sure if this is really the best solution for the problem. It somehow feels like the wrong place here since Maybe you have an opinion on that, but I guess you are not an expert here as well :D |
| // 1. loopToFirstOrLastItem would change the selection of the inner CTabFolder | ||
| // 2. control.traverse itself would navigate up to the outer CTabFolder and | ||
| // navigate there | ||
| control = control.getParent(); |
There was a problem hiding this comment.
Just a guess, but I think you should have navigated all the way to the top with a loop, just to be sure you're navigating on the "Editor Area" and not inside a multi-page editor.
In any case, I plan to merge #3558 and added you and Matthias as co-authors :-)
fedejeanne
left a comment
There was a problem hiding this comment.
Just a comment... I'll proceed with #3558 as a joint effort 💪
control.traverse on a CTabFolder in the MultiPageEditor is navigation up the the outer CTabFolder itself.
This is causing several issues:
Setting the page for example to the second-to-last is changing the page in the multipage editor. Then the traverse direction is changed causing the outer tab to move in the wrong direction. Furthermore on the outer tab you cannot jump from the last tab to the very first tab.
How to reproduce
plugin.xmlinner tabSee
traversing.mp4