安装后 Eclipse 插件视图不显示

发布于 2024-12-10 12:23:29 字数 883 浏览 0 评论 0原文

我创建了一个示例插件,其中包括 Eclipse 中的一个简单视图,并从工作台内部运行该插件,安装了我的插件,并且我的视图显示在 Window/Show View/Other... 中。我将插件打包为jar文件并将其安装在eclipse的plugins目录下并重新启动我的eclipse工作台。我无法找到我的插件视图。我不知道出了什么问题,

我正在使用 eclipse RCP SR2 (3.6) 来开发插件,我的打包 jar 文件包括代码、META-INF/MANIFEST.MF 和 plugin.xml 文件。

我从《Eclipse Plug-ins, 3rd Edition》一书中创建了该插件。我完全按照这些步骤操作,但无法将插件设置为 jar 文件。


我让它以某种方式工作?该插件项目是使用执行环境 JavaSE-1.6 创建的。 “这是在我提到的书中给出的”。现在清单编辑器有条目“Bundle-RequiredExecutionEnvironment:JavaSE-1.6”。现在我在 Eclipse 中运行该应用程序,它正在工作。但是当我将插件捆绑为jar并将插件jar复制到plugins文件夹下并重新启动eclipse时,插件不起作用,我不知道为什么,我以为我的eclipse没有在JRE1.6下运行,但我检查了我的Windows- >首选项->Java->已安装的 JRE->我只检查了jdk1.6.0_27(所以我假设eclipse在JavaSE1.6下运行)。这让我有点困惑!我删除了清单编辑器概述选项卡中的执行环境条目。现在我的清单中没有“Bundle-RequiredExecutionEnvironment”条目,我再次创建了捆绑包 jar 并安装在 eclipse 插件文件夹中,并使用 -clean 选项重新启动了 eclipse。它开始在我的日食中工作。我让它以某种方式工作,但不理解!我仍在寻找可以帮助我找出问题所在的人的答案?

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong

I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.

I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.


I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╭ゆ眷念 2024-12-17 12:23:29

打开 OSGI 控制台并输入“ss”。它应该列出所有插件。你能看到吗?它是什么状态。

您可以使用首选项/插件开发/目标平台编辑运行“运行平台”内容选项卡来列出和选中/取消选中插件。我希望它有帮助。

您可以尝试将 jar 文件复制到 eclipse/dropins 文件夹。

Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.

You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.

You could try copying your jar file to the eclipse/dropins folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文