简体   繁体   English

如何强制Eclipse工具栏位于一行上

[英]How can I force the Eclipse toolbar to be on one row

The toolbar seems to like to take 2 rows instead of one after a restart, even though: 工具栏似乎想在重启后占用2行而不是1行,即使:

  • there is enough horizontal space; 有足够的水平空间;
  • I manually arrange them to be on one row; 我手动安排他们在一排;
  • the toolbars are locked. 工具栏已锁定。

Eclipse toolbar http://img73.imageshack.us/img73/4266/eclipsetoolbar.png Eclipse工具栏http://img73.imageshack.us/img73/4266/eclipsetoolbar.png

How can I prevent the toolbar position from being reset after a restart? 如何在重启后阻止工具栏位置重置?


This is Eclipse 3.5.1 on Linux x86 GTK. 这是Linux x86 GTK上的Eclipse 3.5.1。

Update : Please note that Eclipse saves the workspace - my toolbar customisations work - except for the 'please please remain on one row' setting. 更新 :请注意Eclipse保存工作区 - 我的工具栏自定义工作 - 除了“请保持一行”设置。

I don't know how to prevent toolbar elements to change position, but I find a way to reset it. 我不知道如何防止工具栏元素改变位置,但我找到了重置它的方法。 You could reset a workbench with toolbar (I didn't find a way to reset tollbar only). 您可以使用工具栏重置工作台(我没有找到重置收费栏的方法)。 You could do it by removing file: workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi 你可以通过删除file:workspace / .metadata / .plugins / org.eclipse.e4.workbench / workbench.xmi来做到这一点。

If eclipse does not successfully save its perspective, that may be due to: 如果eclipse没有成功保存其视角,那可能是由于:

  • a right issue (read-only files in the workspace? Wrong user for launching the eclipse process) 一个正确的问题(工作区中的只读文件?用于启动eclipse过程的错误用户)
  • a starting issue (option --clean deep within an eclipse.ini; consider replacing it with this eclipse.ini ) 一个起始问题(选项 - 在eclipse.ini中深入清除;考虑 eclipse.ini 替换它

Regarding the toolbar layout specifically, this problem has been seen before, and before you reported it in bug 292398 , you can actually read: 特别是关于工具栏布局,之前已经看到过这个问题,在您在错误292398中报告它之前,您实际上可以阅读:

  • bug 52229 : Toolbar layout not retained across sessions, possibly related to: 错误52229 :跨会话不保留工具栏布局,可能与以下内容有关:
  • bug 62411 : ApplicationWindow's CoolBar does not re-layout window's contents on CoolItem's drag, which leads to: bug 62411 :ApplicationWindow的CoolBar没有在CoolItem的拖动上重新布局窗口的内容,这导致:
  • bug 203370 : mentions "There are some other outstanding bugs in ToolBar." bug 203370 :提到“ToolBar还有其他一些突出的bug。”

... which says it all. ......说明了一切。

When I said "this problem has been seen before", meet bug 69616 , reported 2004-07-08 for eclipse3.0. 当我说“之前已经看到这个问题”时,遇到错误69616 ,报告2004-07-08为eclipse3.0。
Still pending. 仍悬而未决。

I unlock the toolbars and set their positions. 我解锁工具栏并设置他们的位置。 but they are always back all tossed in the left on eclipse start. 但是他们总是在日食开始的时候全部扔在左边。

Yes, the cool item ordering will be remembered, but the absolute positions will not. 是的,将记住很酷的项目订购,但绝对的位置不会。

Try Window->Save Perspective As and save with the same as you use. 尝试使用Window-> Save Perspective As并使用与使用相同的方法保存。 It think, this will be enough. 它认为,这就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM