我正在编写一个包含超过 50 个插件的 Eclipse RCP 项目。在我的插件上更改某些内容时,我必须花时间关闭 RCP 应用程序,然后再次运行它。这需要时间。
我宁愿做的是在 RCP 运行时重新加载有问题的新建插件。这可能吗?如果可能,怎么做?
谢谢!
最佳答案
我会试试这个:
import org.eclipse.core.runtime.Platform;
...
// at the place you need to reload your plugin
Platform.getBundle( "bundle " );
并替换字符串内容"bundle"
使用来自 MANIFEST.MF
的值的 Bundle-SymbolicName:
条目。
关于java - 我想在运行时在 Eclipse RCP 应用程序中重新加载插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27066244/