ISharedImages概述?

Kai*_*Kai 10 eclipse-plugin eclipse-rcp

Java UI插件提供了ISharedImages访问标准图像的接口,可以在自己的插件中使用.

例如

Image image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT);
Run Code Online (Sandbox Code Playgroud)

这非常有效,但我没有找到可用图像的概述.有人可以指点我这样的文件吗?

lor*_*ini 13

您可以使用最近添加的插件图像浏览器:

窗口>显示视图>其他...>插件开发>插件图像浏览器

另见http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fviews%2Fimage_browser_view.htm


Kri*_*ris 9

您可以在这里找到其中一些,但请记住,其他第三方插件可以添加另一组共享图像,您必须参考该插件文档.

  • 感谢您的链接,[本页](http://www.vorlesungsfrei.de/kai/index.php?location=eclipse&sub=sharedimages)显示了所有可用的图像.其他插件如何贡献图像?你的意思是`ImageRegistry`? (6认同)