简体   繁体   English

dropins文件夹中的Eclipse p2插件已安装但未激活

[英]Eclipse p2 plugins from the dropins folder are installed but not activated

I have an eclipse product built against eclipse platform 3.6.2. 我有一个针对Eclipse平台3.6.2构建的Eclipse产品。 I have other external plugins (no features) that are built separately (against the same platform) and my product does not depend on them, but they do depend on some plugins in my product. 我还有其他外部插件(无功能),它们是单独构建的(针对同一平台),我的产品不依赖于它们,但它们确实依赖于产品中的某些插件。 These external plugins makes contributions to the menus. 这些外部插件为菜单做出了贡献。

When I run my application from Eclipse and I add the extenral plugins to my launcher, they work just fine and I can notice their menu contributions. 当我从Eclipse运行我的应用程序并将扩展插件添加到启动器时,它们运行良好,并且我可以注意到它们的菜单贡献。 But when I build my application using PDE (with p2 support) and I add the external plugins to the dropins folder. 但是,当我使用PDE(具有p2支持)构建应用程序时,我将外部插件添加到dropins文件夹中。 They do get detected in my list of installed plugins in the product installation details but the Plugin.start() does never get called, nor I see their menu contributions, also when I check them in the configuration tab, I notice that they are listed as < Plugin ID> [Starting] . 在产品安装详细信息中我的已安装插件列表中确实检测到了它们,但是Plugin.start()从未被调用,也看不到它们的菜单贡献,当我在“配置”选项卡中检查它们时,我注意到它们已列出作为<插件ID> [开始]。 But when running from eclipse, in the Configuration they are listed as [Active] 但是从Eclipse运行时,在“配置”中将其列为[活动]

I did try to add the extension point org.eclipse.ui.startup but it didn't change anything, it doesn't get called either. 我确实尝试添加扩展点org.eclipse.ui.startup,但是它没有任何改变,也没有被调用。

Could anybody please help me with such a problem, or even guide me on how to debug it, I can't seem to make the p2 to print any useful debugging information when installing my pluigns. 有人可以帮我解决这个问题,甚至可以指导我如何调试它,我似乎无法让p2在安装我的插件时打印任何有用的调试信息。

Its great that you have built them using p2 support. 很高兴您使用p2支持来构建它们。 This means should now have a P2 metadata repository. 这意味着现在应该有一个P2元数据存储库。 Now to install, just dropping the the stuff into dropins folder is not enough. 现在要安装,仅将内容放入dropins文件夹中是不够的。 I should recommend to instead 'install' them using the Help -> Install new software... 我应该建议改为使用“帮助”->“安装新软件”来“安装”它们。

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

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