JFace 树中选定的文本颜色
我正在准备 Eclipse 编辑器,其中一个选项卡是一棵包含一些值的树。我使用颜色和字体样式为用户提供更多信息。例如,当用户输入的值超出范围时,字体颜色为红色,或者当值非默认时,字体为粗体样式。
但是用户必须将选择移动到另一个单元格才能查看颜色/样式是否已更改。 是否可以更改 JFace 树中所选单元格的颜色/样式?
I'm preparing Eclipse editor where one of the tabs is a tree with some values. I'm using colors and font style to give more information for the user. E.g. when the user puts a value which is out of range then the font color is red, or when a value is non-default then the font has a bold style.
But the user has to move the selection to another cell to see if the color/style has changed or not. Is it possible to change the color/style of the selected cell in the JFace tree?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几种方法可以做到这一点。最明显的两个是:
无法通过主题更改颜色。
There are several ways to do this. The two most obvious are:
It is not possible to change the colors via theming.