如何从eclipse获取实体的图标? [英] How to get icons for entities from eclipse?
问题描述
编辑:我从文章中使用了 PlatformUI.getWorkbench()。getSharedImages()。getImage(ISharedImages.IMG_OBJ_FILE)
: http://www.eclipse.org/articles/Article-Using%20Images%20In% 20Eclipse /使用%20Images%20英寸%20Eclipse.html 。
这不行。
您可以使用图像浏览器视图。请参阅 here 参考这篇文章,使用eclipse标准图片/图标在你的插件
I am writing an eclipse plugin. How do I get the various images from eclipse library? So I don't have have keep a local set of images for the standard entities, e.g classes, interfaces, junits, etc.
EDIT : I used PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FILE)
from the article : http://www.eclipse.org/articles/Article-Using%20Images%20In%20Eclipse/Using%20Images%20In%20Eclipse.html.
That did not work.
You can use Image browser view. See here Refer this post for using eclipse standard images/icons in your plugin
这篇关于如何从eclipse获取实体的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!