Community
Participate
Working Groups
OK in 3.8, broken in 4.2.1 RC2 and in master "Show In" menu doesn't use MRU order any more: - select a problem in the Problems view - Show In > Package Explorer (using keyboard or context menu) - go back to Problems view - open Show In menu => expected: Package Explorer on top => was: random order as before
The main problem appears to be in org.eclipse.ui.internal.WorkbenchPage. The methods that do the sorting in performedShowIn and sortShowInPartIds are not implemented. Both of these methods are called at the moment. Also org.eclipse.ui.internal.ShowInHandler.execute has a suspect TODO comment where it calls performedShowIn. The menu context item list appears to be maintained in org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout, so this will probably need to be sorted by the sortShowInPartIds method.
New Gerrit change created: https://git.eclipse.org/r/43338
Gerrit change https://git.eclipse.org/r/43338 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=bfa4d4927fbc51f0ef69c35ade72cfd2195f00df
Thanks Tomasz! As noted on the Gerrit discussion, the behaviour differs slightly from 3.x: > > in 3.x the list seemed to be kept on a per-perspective basis whereas Tomasz' > > solution is on a per-window basis. I don't use Show In so I don't have a > > feeling as to how important this is. > I don't use perspectives, so for me, it also doesn't matter;-) Since the order > has been broken for years now, I don't think many will notice this change at > all. And it's also not clear why per-perspective would be better than > per-window, per-workbench, or per-view. When persisting out the show-in list, we persist the list in MRU order rather than a map of part -> timestamps.
Verified in I20150428-0800