Eclipse tabs repositionning

EclipseTabsEclipse Juno

Eclipse Problem Overview


I have been using Indigo for a while, and now trying Juno
There is a sligth bothering difference:

On Indigo When you had 10 tabs opened

A | B | C | D | J | H | G ....(F | T | S)

and currently on B
when you selected the file shown in tab T again, then this tab (on Indigo and that's the problem not on Juno) would be repositioned like that:

A | B | T | C | D | J | H ....( G | F | S)

This is useful since, if opening T after B, it means they should be grouped together

on Juno it does not reposition them, instead you will need to find most recent files far in the tab list

Q: how to set it back? I searched params with 'tabs' in the options with no result

edit: still the same in new versions (Kepler)

edit: Thanks to Paul' answer, a good solution is to search for .css files in eclipse folder, and set swt-mru-visible property to true in e4-default-win7.css for example

Eclipse Solutions


Solution 1 - Eclipse

Juno by default doesn't present the MRU (Most Recently Used) tab behaviour that you see in Indigo (it never worked quite right) and instead uses the Editor document order.

I believe you can re-activate it be either switching to the Classic theme in Preferences>General>Appearance or by editing the CSS. See http://wiki.eclipse.org/Eclipse4/CSS

.MPartStack {
    swt-mru-visible: true;
}

Don't forget to restart Eclipse to make it use the new parameters.

Solution 2 - Eclipse

Apparently this option was added in Eclipse Mars 4.5:

Window -> Preferences -> General -> Appearance ->

> Visible tabs on overflow: > > [X] Show most recently used tabs

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1125394View Question on Stackoverflow
Solution 1 - EclipsePaul WebsterView Answer on Stackoverflow
Solution 2 - EclipseRobert MikesView Answer on Stackoverflow