简体   繁体   English

我的 Eclipse E4 插件仅适用于新工作区,workbench.xmi 不更新

[英]My Eclipse E4 plugins only works with new workspaces, workbench.xmi not updating

When I create and export my E4 plugins to install in eclipse, my modifications don't show up at first.当我创建并导出我的 E4 插件以在 eclipse 中安装时,我的修改一开始不会显示出来。

I can only see my modifications in workspaces I create after I installed the plugin.我只能在安装插件后创建的工作区中看到我的修改。

To see my modifications in old worksapaces, I have to manually delete workbench.xmi file (.metadata.plugins\\org.eclipse.e4.workbench\\workbench.xmi).要查看旧工作区中的修改,我必须手动删除 workbench.xmi 文件(.metadata.plugins\\org.eclipse.e4.workbench\\workbench.xmi)。

It does not matter if I export to "Deployable plug-ins and fragments" (copying to plugin folder) or "Deployable features" (installing it), it works all the same related to the workbench.xmi file issue.如果我导出到“可部署插件和片段”(复制到插件文件夹)或“可部署功能”(安装它)并不重要,它的工作原理与 workbench.xmi 文件问题相关。 I tried it with Eclipse Neon and Eclipse Oxygen last version.我在最新版本的 Eclipse Neon 和 Eclipse Oxygen 上进行了尝试。

I don't know if I am doing something wrong, if that is a knowing issue or the way it suppose to be.我不知道我是否做错了什么,这是一个已知问题还是它假设的方式。

I presume I am doing something wrong.我想我做错了什么。 I would like a way to develop E4 plugins, without having to tell my final user to manually delete the workbench.xmi in their old workspaces, to be able to use it.我想要一种开发 E4 插件的方法,而不必告诉我的最终用户手动删除其旧工作区中的 workbench.xmi,以便能够使用它。 Or each time they install an update or new plugins I release.或者每次他们安装我发布的更新或新插件时。

I am new with E4 plugins development, thanks for any help!!!我是 E4 插件开发的新手,感谢您的帮助!!!

I found the answer in the other forum I asked it: https://www.eclipse.org/forums/index.php/t/1089590/我在我问的另一个论坛中找到了答案: https : //www.eclipse.org/forums/index.php/t/1089590/

In the plugin.xml file -> Extensions tab -> org.eclipse.e4.workbench.model extension -> (fragment)plugin.xml文件 ->扩展选项卡 -> org.eclipse.e4.workbench.model扩展 ->(片段)

Set apply to always , in my new plugin projects apply was set to initial by default .apply设置为 always ,在我的新插件项目中apply 默认设置为 initial

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM