简体   繁体   中英

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.

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).

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. I tried it with Eclipse Neon and Eclipse Oxygen last version.

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. Or each time they install an update or new plugins I release.

I am new with E4 plugins development, thanks for any help!!!

I found the answer in the other forum I asked it: https://www.eclipse.org/forums/index.php/t/1089590/

In the plugin.xml file -> Extensions tab -> org.eclipse.e4.workbench.model extension -> (fragment)

Set apply to always , in my new plugin projects apply was set to initial by default .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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