不能得到eclipse来识别我的插件 [英] Can't get eclipse to recognize my plugin

查看:210
本文介绍了不能得到eclipse来识别我的插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过清单中的导出向导导出了我的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?

PS。我的插件使用其他依赖项,如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.

有关详细信息,请参阅打开我的包

For more details, see Wheres my bundle

编辑:验证插件是否正常工作的第一步是使用插件启动新的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆