问题描述
在我的eclipse插件中,测试插件(作为Eclipse应用程序运行)-
如下所示,新向导将正确呈现,并以黄色突出显示。
但是,一旦如下图所示导出了插件并将其作为罐子放置在 eclipse\plugins 中,所有图像都会丢失。这可能是什么原因?
放置广口瓶后,下面呈现时没有图像-
Eclipse默认添加已编译的Java类。其他文件必须手动包含在build.properties中,例如:图标或初始屏幕图像。
可以在此处找到一个很好的示例
希望有帮助!
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中后,为什么插件的所有图像都消失了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!