无法从 URI 检索包:bundleclass://org.eclipse.e4.tools.emf.ui/

Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.tools.emf.ui/

我从一个 RCP 插件开始,然后编写了一个自己的编辑器。 运行我遇到这个错误的项目

"无法从 URI 检索包:bundleclass://org.eclipse.e4.tools.emf.ui/org.eclipse.e4.tools.emf。 ui.internal.handlers.ResetToDefaultHandler”。 我也有很多其他处理程序的最后一条错误消息,例如"AutosizeColumnsHandler"、"UnmarkItemsHandler"、"RepairDuplicateItemsHandler"...

我已经用 OSGi 控制台检查过 OSGi 看不到我的包。我的项目中没有使用 e4 建模。

我是 运行 我的 RCP 作为产品“org.eclipse.sdk.ide”。

有人知道该怎么办吗?

提前致谢。

解决方案是 运行 将 RCP 作为应用程序 org.eclipse.ui.ide.workbench。此外,运行配置中"plug-in"选项卡中的"add Required Plug-ins"没有添加插件org.eclipse.equinox.ds,这是必需的。我手动添加的。

它对我来说并不适用......但我仍然设法让它工作得很好。这些是我为使其工作而采取的步骤:

  1. Remove the product(if you already have one) from your "run configurations"
  2. Add a new product for your project. To add a product select the project: "right click" on the project -> "New" -> "others..." -> in wizard write product and select "Product Configurations" and click "next". Select the project if it's not already done. Name your product (usually <>.product), check "Create a configurations file with the basic settings" and dial "Finish". Now you've got a product file. Go to "Overview"(make sure to fill a product ID and the Name. In "Product Definition" under "Product" and "Application" select the product and the application.
  3. Now move to "Dependencies" and your project under "Add..." and its dependencies under "Add Required Plug-ins".
  4. You're almost finish yet... Now let get to the trickiest part. For reasons unknown some plug-ins don't get to be picked up by the eclipse auto-analysis, so you need to add them by yourself. Add "org.eclipse.equinox.ds" and "org.eclipse.equinox.event"to your plug-ins dependencies and "Add Required Plug-ins".
  5. Move back to Overview hit "synchronize" under "Testing" and Launch with "Launch an Eclipse application".

这些步骤对我来说工作得很好......现在我希望,我帮助了我的贡献。