Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change toolbar button order in eclipse 4.2?

With the old version, we just needed to drag and drop to change the positions toolbar's button. But with juno, how do we do this?

like image 929
Alex Luya Avatar asked Aug 09 '12 04:08

Alex Luya


3 Answers

I don't believe you can re-order them in Eclipse 4.2.

However, you can choose to hide them: - Window -> Customize Perspective -> Tool Bar Visibility

like image 156
Michael Avatar answered Nov 17 '22 19:11

Michael


This is bug 364046, and has supposedly been fixed but is not yet released.

In the meantime, you can reorder the perspective buttons using the Live Application Model View. I am not sure what you need to install to get this view -- Eclipse e4 Tools perhaps? I didn't see the view in the Show View dialog but it shows up with Ctrl-3.

Once you get the live application model view up, you need to find the Perspectives Stack, which I found under Windows->Trimmed Window->Controls->PartSashContainer->Perspectives Stack. Then you can reorder either by dragging/dropping in the tree view, or by the up/down buttons in the editor. I had to restart Eclipse to see the changes.

like image 37
Christopher Barber Avatar answered Nov 17 '22 18:11

Christopher Barber


until the bug is fixed, i've found that one can:

  1. figure out the order of the perspective items you are interested in
  2. close all perspectives (or at least all that are in the wrong order
  3. re-open in the order preferred.

if switching the last 2, just close the 2nd to last one, then re-open it, and it will be the last one.

if you want to move the first one to the last position, close it, then re-open.

if you want to move the last one to the first position, well ... you'll have to close all the others, then re-open them in the order you want.

this might involve less work than pulling in the "live application model view". at the very least, it just worked for me after coming to this question in hopes of seeing a real answer to the problem.

like image 40
john.k.doe Avatar answered Nov 17 '22 19:11

john.k.doe