“Add Required Plug-ins” button in Eclipse RCP product configuration?

时光毁灭记忆、已成空白 提交于 2019-12-05 14:42:27

When you develop your RCP application, you specify:

  • not enough plugins (i.e. only the one you need to compile, but not their runtime dependencies)
  • and/or too many plugins (i.e. you depends on some provided by eclipse, even though you do not use them all)

In order to launch your RCP application as a standalone application, the "Add Required Plug-ins" allows you to validate (i.e. select only the right amount of plugins you actually need) your runtime configuration.

alt text http://www.vogella.de/articles/RichClientPlatform/images/launchconfiguration30.gif

That helps to solve errors like:

  • "One or more bundles are not resolved because the following root constraints are not resolved" or
  • "java.lang.RuntimeException: No application id has been found."

Not; you can validate your plugins in order to check that launching configuration before actually launching it.

This is only part of the story. When you want to deploy your RCP application you need to somehow add these dependencies without a Launch Configuration. The easiest way of doing this is to do as @VonC suggests but instead of hitting Run go to the Common tab and share the run configuration by specifying a directory (it gives it a name automatically), apply and close the dialog. Create a new Feature Project, call it something like 'org.com.product.dependencies', press Next, select Initialise from Launch Configuration and choose the one you just shared. Then include this feature in your Product Configuration. Voila!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!