Eclipse place a new open editor tab next to the current active?

Is it possible for Eclipse to place a new open editor tab next to the current active?

Until the tab bar is full, eclipse places the new tab in the first free position, which is acceptable. When the line is full, the eclipse prefers to hide the LRU tab, which is also acceptable. But he puts the new tab on the freed position, which from the POV user is completely random. Extremely strange, IMHO.

For example, my English is worse than me:

Starting position , assuming that b is an active LRU and D, discovery of G:
abc D ef

Current behavior :
a G c D ef

Required Behavior :
ac DG ef

+7
source share
3 answers

Have you read the following? https://bugs.eclipse.org/bugs/show_bug.cgi?id=68684

Because I remember reading about this problem.

+2
source

I didn't like tab placement before, but I really don't like how it works in Eclipse Juno. The Eclipse team claims that they never received more than 20% of their users who prefer the tab placement method.

In any case, the good news is that setting tab placement may become easier in the future, and if you don't like the current style, you can easily go back to the old style.


Comparison of tab styles

MRU style (older) . The last n tabs are always displayed.

Array style (newer) . New tabs always go at the end of an infinite array of tabs. Then the visible set of tabs scrolls until the selected tab is visible.

Suppose the window size is very small, so that only 3 tabs are displayed immediately. Here, as two styles will place things, given that we have already opened the tabs "A" and "B" and are ready to open the tab "C". I will use the tab for visibility:

  Tab |  Old new
 opened |  Visible |  Hidden |  Visible |  Hidden
 -------------------------------------------------- -
 C |  abC |  |  abC | 
 -------------------------------------------------- -
 D |  Dbc |  a |  bcD |  a
 -------------------------------------------------- -
 E |  dEc |  ab |  cdE |  ab
 -------------------------------------------------- -
 A |  deA |  bc |  Abc |  de
 -------------------------------------------------- -
 F |  Fea |  bcd |  deF |  abc
 -------------------------------------------------- -
 D |  fDa |  bce |  Def |  abc

Choosing a tab placement style

As described in other StackOverflow issues Moving Eclipse tabs and Save the previous tab of an open file under visible tabs , you can choose one of two styles by installing the Eclipse E4 CSS editor plugin and then in Settings> General> Change Appearance

 .MPartStack { font-size: 12; swt-simple: false; swt-mru-visible: false; } 

to

 .MPartStack { font-size: 12; swt-simple: false; swt-mru-visible: true; } 
+3
source

There is no direct way. [According to my knowledge.]

As mikezx6r said in his comment: you will need to build an eclipse plugin or you can eclipse view to work according to your needs. For your information: On the Eclipse platform, a view is usually used to navigate a hierarchy of information, open an editor, or display the properties of an active editor.

To learn how to create an eclipse view here , this tutorial is for you.

Hope this helps.

+1
source

All Articles