如何从eclipse获取实体的图标? [英] How to get icons for entities from eclipse?

查看:122
本文介绍了如何从eclipse获取实体的图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个eclipse插件。如何从eclipse库获取各种图像?所以我没有为标准实体保留一组本地图像,例如类,接口,junits等。



编辑:我从文章中使用了 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆