Eclipse RCP 插件部署并安装在 RCP 应用程序中
我有一个第三方 Eclipse RCP 应用程序。我需要在应用程序启动时或更少之前创建一个启动插件。我的想法是,创建一个插件,扩展 elipse.ui.startup 扩展。在一个单独的类中,我实现了 EarlyStartup() 方法。
为了进行测试,我只在控制台上打印一行。就计划而言。如果我导出插件(可部署插件)并将 jar 复制到 RCP 应用程序插件目录,则该插件将不会加载。我在“关于”/“安装详细信息”中看不到插件 ID,
因此我尝试使用命令 -clean -debug -consolelog 启动 RCP。希望是重新创建插件缓存。 输出为:
Install location:
file:/c:/Tools/dev/Eclipse_RCP/
Configuration file:
file:/c:/Tools/dev/Eclipse_RCP/configuration/config.ini loaded
Configuration location:
file:/c:/Tools/dev/Eclipse_RCP/configuration/
Framework located:
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi_3.15.200.v20200214-1600.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.700.v20200207-2156.jar
eclipse.properties not found
Framework classpath:
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi_3.15.200.v20200214-1600.jar
file:/c:/Tools/dev/Eclipse_RCP/plugins/
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi.compatibility.state_1.1.700.v20200207-2156.jar
Splash location:
c:\Tools\dev\Eclipse_RCP\configuration\org.eclipse.equinox.launcher\com.acdp.product.tools.viewer.rcp\splash.bmp
Debug options:
file:/C:/Tools/dev/Eclipse_RCP/.options loaded
Time to load bundles: 114
Starting application: 5947
setting instance location...
buffering System.out/err
Application started in : 8524ms
还有对 .options 文件的引用。内容是:
org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/reconciler=true
没有什么特别适合我的。
有谁知道如何在 Eclipse 启动时创建一个正在启动的插件?我想我忽略了这里任何重要的事情。也许我在这里遵循的方法也是错误的。
问候 Bjoern
我实际拥有的额外内容是: 我做的步骤 文件\新建\插件项目 ->模板“Hello world 命令” 文件\导出\可部署插件 这应该安装在 RCP 中
I have a third-party Eclipse RCP application. I need to create a plugin with is start, when the application is started, or less before. My idea was, to create a plugin, extend the elipse.ui.startup Extension. In a separated class I implement the earlyStartup() method.
For testing I print only a line to the console. As far as the plan. If I export the plugin (Deployable plugin) and copy the jar to the RCP applications plugin directory, the plugin will not load. I can't see the plugins ID in the About / Installation Details
So I tried to start the RCP with the command -clean -debug -consolelog. The hope was to recreate the plugin cache.
The output is:
Install location:
file:/c:/Tools/dev/Eclipse_RCP/
Configuration file:
file:/c:/Tools/dev/Eclipse_RCP/configuration/config.ini loaded
Configuration location:
file:/c:/Tools/dev/Eclipse_RCP/configuration/
Framework located:
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi_3.15.200.v20200214-1600.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.700.v20200207-2156.jar
eclipse.properties not found
Framework classpath:
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi_3.15.200.v20200214-1600.jar
file:/c:/Tools/dev/Eclipse_RCP/plugins/
file:/c:/Tools/dev/Eclipse_RCP/plugins/org.eclipse.osgi.compatibility.state_1.1.700.v20200207-2156.jar
Splash location:
c:\Tools\dev\Eclipse_RCP\configuration\org.eclipse.equinox.launcher\com.acdp.product.tools.viewer.rcp\splash.bmp
Debug options:
file:/C:/Tools/dev/Eclipse_RCP/.options loaded
Time to load bundles: 114
Starting application: 5947
setting instance location...
buffering System.out/err
Application started in : 8524ms
There is also a reference to the .options file. The content is:
org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/reconciler=true
Nothing specially for me.
Does anyone have an idea how I can create a plugin witch is starting while the eclipse startup? I guess I overlooking any important here. Perhaps it is also the wrong approach that I am following here.
Regards Bjoern
Additional what I actually have is:
Steps I do
File \ New \ Plugin-Project
-> template "Hello world Command"
File \ Export \ Deployable plugins
And this should install in the RCP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论