简体   繁体   English

在Eclipse中的Package Explorer中自定义Treeview项目

[英]Customize treeview items in package explorer in eclipse

在此处输入图片说明

Spring Tool Suite 4.4.2, KDE Plasma 5.3. Spring Tool Suite 4.4.2,KDE Plasma 5.3。 Is it possible to reduce spaces between items in this treeview in package explorer? 可以在Package Explorer的这个Treeview中减少项目之间的空间吗? (I'm not talking about changing font size. I already did it) (我不是在谈论更改字体大小。我已经做到了)

I doubt it has to do anything with STS... This is probably a problem with SWT on KDE Plasma 5.3. 我怀疑它与STS无关。这可能是KDE Plasma 5.3上SWT的问题。 If you don't see he spacing between tree items the same elsewhere in your UI outside of Eclipse I'd raise an issue against Eclipse SWT project. 如果您没有看到他在Eclipse之外的UI中其他地方的树项目之间的间距相同,那么我将对Eclipse SWT项目提出一个问题。

It might be possible to change the spacing by modifying the CSS. 通过修改CSS可以更改间距。 The way I understand it, since Eclipse 4, the IDE is fully 'themeable' via CSS. 据我了解,从Eclipse 4开始,IDE通过CSS完全“可识别”。 So in principle it should be possible to control the spacing. 因此,原则上应该可以控制间距。

As I haven't tried it myself, I have no idea if it will work for you though. 因为我自己还没有尝试过,所以我不知道它是否对您有用。 The best I can give you is a pointer to some info about the CSS stuff: 我能提供给您的最好的信息是有关CSS的一些信息的指针:

https://wiki.eclipse.org/Eclipse4/CSS https://wiki.eclipse.org/Eclipse4/CSS

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

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