gpt4 book ai didi

java - 如何访问标准 Eclipse 图标

转载 作者:行者123 更新时间:2023-11-30 05:36:38 34 4
gpt4 key购买 nike

我正在使用 Nebula nattable 构建一个树表,并尝试将其样式设置为 swt 树表。现在的问题是我尝试使用与 swt 表相同的装饰器图标,但找不到它们。

当前图标选择如下:

 TreeImagePainter treeImagePainter =
new TreeImagePainter(
false,
GUIHelper.getImage("right"), //$NON-NLS-1$
GUIHelper.getImage("right_down"), //$NON-NLS-1$
GUIHelper.getImage("leaf")); // This is an empty image acting as a placeholder to match the
// indentation

我想用此图片中显示的图标替换它们:
A 为所需图标,B 为当前图标。
enter image description here

有相对论简单的方法来实现这一点吗?

最佳答案

这些图标来自操作系统,据我所知,没有简单的方法来访问它们。至少我还没有找到一种方法,这就是在 NatTable 本身中包含这些图标的原因。

关于java - 如何访问标准 Eclipse 图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56461765/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com