无法让 Eclipse 识别我的插件 [英] Can't get eclipse to recognize my plugin
问题描述
我通过清单中的导出向导"导出了我的 eclipse 插件,看起来一切顺利(没有错误).它在 zip 文件的插件目录中创建了一个 .jar 文件.
I exported my eclipse plugin through the "Export Wizard" in the manifest and seems like everything went well (no errors). It created a .jar file within a plugin directory in a zip file.
我认为将 jar 放入我的 Eclipse 插件目录会安装它(在重新启动 eclipse 之后),但这不起作用.Eclipse 看不到插件(透视图不显示)
I thought putting the jar into my Eclipse plugin directory would install it (after re-launching eclipse) but that didn't work. Eclipse can't see the plugin (the perspective isn't showing up)
我尝试使用帮助->安装新软件->本地存档,但它一直说找不到软件"
I tried with Help->Install new software->local archive but it keeps saying "no software found"
你能帮我准备好将我的插件安装到新的 Eclipse 副本上吗?
Can you help me getting my plugin ready to be installed on a fresh Eclipse copy?
附言.我的插件使用其他依赖项,如 EMF/GMF
Ps. my plugin uses other dependencies like EMF/GMF
推荐答案
在 eclipse 中,转到您的控制台窗口.从下拉菜单中,选择 OSGI 控制台.运行命令 ss
或 ss <你的插件名称>
然后,您将看到插件的状态和一个数字.状态可能是已安装",这意味着如果已找到,但不满足某些依赖项.
In eclipse, go to your console window. From the drop down meny, select OSGI console. Run the command ss
or ss <name of your plugin>
You will then see the state of your plugin and a number. The state will probably be "installed" which means if has been found, but some dependencies were not satisfied.
运行命令 diag
,您将看到它没有启动的原因.
Run the command diag <number of your plugin>
and you will see why it wasn't started.
有关详细信息,请参阅我的包在哪里
验证插件是否正常工作的第一步是使用您的插件启动一个新的 eclipse 实例.在运行配置对话框中,有一个包含所有应该启动的插件的选项卡.确保您的已选中,它将从新的 eclipse 实例开始.
A first step to verify that the plugin is working would be to start up a new eclipse instance with your plugin. In the run configuration dialog, there is a tab with all the plugins that should be started. Make sure yours is checked and it will start with the new eclipse instance.
这篇关于无法让 Eclipse 识别我的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!