将插件导出为jar并集成到IDE中后,为什么插件的所有图像都消失了? [英] Why do all the images of the Plugin disappear once the plugin is exported as a jar and integrated in the IDE?

查看:30
本文介绍了将插件导出为jar并集成到IDE中后,为什么插件的所有图像都消失了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的eclipse插件中,测试插件(作为Eclipse应用程序运行)-



如下所示,新向导将正确呈现,并以黄色突出显示。





但是,一旦如下图所示导出了插件并将其作为罐子放置在 eclipse\plugins 中,所有图像都会丢失。这可能是什么原因?





放置广口瓶后,下面呈现时没有图像-



解决方案

Eclipse默认添加已编译的Java类。其他文件必须手动包含在build.properties中,例如:图标或初始屏幕图像。



可以在此处找到一个很好的示例 https://www.vogella.com/tutorials/EclipseProductDeployment/article.html



希望有帮助!


In my eclipse plugin, while testing the plugin(Run As Eclipse Application)-

As seen below, all the images in the New Wizard are rendered properly, highlighted in yellow.

However, once the plugin is exported as shown below, and placed as the jar in \eclipse\plugins, all the images are lost. What could be the reason for this?

After the jar is placed, the below is rendered without the images-

MANIFEST.MF file-

解决方案

Eclipse adds the compiled Java classes by default. Other files must be included manually in build.properties, example :icons or splash screen images.

A good example can be found here https://www.vogella.com/tutorials/EclipseProductDeployment/article.html

Hope it helps !

这篇关于将插件导出为jar并集成到IDE中后,为什么插件的所有图像都消失了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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