java - eclipse 插件环境中缺少模式

标签 java eclipse eclipse-plugin

我从我的插件角度来看这个。我得到一个 generic 菜单而不是特定项目,例如actionalt text
(来源:sourceforge.net)

我的“首选项/插件开发/目标平台”看起来像:

alt text
(来源:sourceforge.net)

当我去编辑时,它看起来像: alt text

最佳答案

这是否类似于this thread

I just figured out what was the problem.
I was using an external target platform to run my plugins, where I had installed only the basic plugins. After I installed the sources org.eclipse.platform.source_2.1.0 and org.eclipse.platform.win32.source_2.1.0 also on the target platform, the manifest editor in the PDE was working normal again.

(适应你的Eclipse版本)


也在这个more recent thread中确认:

Your target platform (and the default will be your own eclipse install) needs to have the source bundles (which provide the schema files used by these menus).

i.e. if I installed the runtime version, I will only get Generic in the menus but if I install the SDK version I will get real elements.

非常感谢您的回答。
我将源文件“添加”到平台(Preferences/Plugin development/Target platform)并获得所有菜单!!

关于java - eclipse 插件环境中缺少模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2785333/

相关文章:

eclipse - 单击 Eclipse 插件中的菜单项时,如何显示带有文本文件和按钮的简单 swt 窗口?

java - 使用 Junit 构建 Maven 项目

java - 使用 "DocumentListEntry.updateMedia()"方法时 GData API 出现问题

java - OpenGL ES : glFrustrum at rendering time

java - Maven:缺少所需的 java 项目

eclipse - 如何干净地卸载 Eclipse MapReduce 插件?

java - Derby 的另一个实例可能已经使用嵌入式数据库启动了数据库

java - Android:如何通过单击按钮重新启动方法

java - eclipse启动错误代码1

java - <ClassName> 扩展非 API 类型 <SuperclassName>