Eclipse插件在部署时不起作用 [英] Eclipse plug-in not working when deployed

查看:122
本文介绍了Eclipse插件在部署时不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了Eclipse插件,当它在开发运行时运行时工作正常,但是在创建更新站点和安装后,行为就会发生变化。

I have written an Eclipse plug-in that works fine when it's being run in the development runtime, however after creating an update site and installing, the behavior changes.

在大多数情况下,功能会起作用,它似乎无法显示2个对话框。第一个是从org.eclipse.jface.dialogs.PopupDialog子类的弹出对话框。第二个已经从org.eclipse.jface.dialogs.Dialog子类化。

For the most part the functionality does work, it just appears unable to display 2 dialog boxes. The first is a popup dialog subclassed from org.eclipse.jface.dialogs.PopupDialog. The second has been subclassed from org.eclipse.jface.dialogs.Dialog.

围绕这些对话框的其余代码似乎运行,就好像它们不在那里所有这一切,我认为两个环境(开发运行时和安装的运行时)之间有区别,这是阻止插件找到正确的类/正确显示它们。

The rest of the code around these dialogs appears to run as if they're not there at all so I'm thinking there is a difference between the two environments (the development runtime and the installed runtime) that is preventing the plugin from finding the correct classes/displaying them properly.

我已经尝试将org.eclipse.jface.dialogs包添加到插件清单中,但是我找不到我已经导入到代码中的确切包。我可以导入org.eclipse.jface.databinding.dialog,但是显然不一样的包。我可以添加org.eclipse.jface作为插件的feature.xml的依赖。这显然对我的问题没有影响。

I have tried adding the org.eclipse.jface.dialogs package to the plugin manifest, however I cannot find the exact package that I have imported into the code. I can import org.eclipse.jface.databinding.dialog, but it's not the same package obviously. I can however add org.eclipse.jface as a dependency to the feature.xml for the plugin. This apparently has no affect on my problem.

正如在开发中预期的一样,我找不到任何错误消息,我不知道下一步该怎么做。任何人都可以建议我可能会出错?

As it works as expected in development and I can't find any error messages, I don't know what to do next. Can anyone suggest where I might be going wrong?

Adam

*根据请求的更多信息 *
开发我作为Eclipse应用程序运行插件时。然后,我构建了我的更新站点并将其安装到我的RTC版本的Eclipse中。在这一点上,它停止工作。

* More info as requested * When developing I am running the plugin as an Eclipse application. I then built my update site and installed it into my RTC version of Eclipse. It was at this point it stopped working.

当插件安装到Eclipse中时,它肯定是开始的。我已经从OSGi控制台确认了这一点,也从运行它。对话框周围的代码执行正常。在上下文中,我有一个类执行一些XML处理,显示一个对话框,允许用户更改几个变量,然后处理继续。在安装的插件版本中,代码使用默认值运行start-finish,即不显示我的对话框。

When the plugin is installed into Eclipse it is definitely started. I have confirmed this from the OSGi console and also from running it. The code around the dialogs executes ok. In context I have a class that does some XML processing, displays a dialog that allows the user to change a few variables and then processing continues. In the installed version of the plugin, the code runs start-finish using the default values, that is, not showing my dialog box.

在我的Manifest.MF中插件我尝试将org.eclipse.jface插件添加到依赖项选项卡,但似乎没有解决问题。

In the Manifest.MF of my plugin I tried adding the org.eclipse.jface plugin to the dependencies tab, but it didn't seem to fix the problem.

我不知道Eclipse错误日志。我不知道在哪里找到这个。

I'm not sure about the Eclipse error log. I wasn't sure where to find this.

我的插件的清单:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: RTC Scripter
Bundle-SymbolicName: RTC_Scripter;singleton:=true
Bundle-Version: 2.0.0.qualifier
Bundle-Activator: com.ibm.cics.dev.rtcscripter.Activator
Require-Bundle: org.eclipse.core.resources;bundle-version="3.6.2";visibility:=reexport,
 org.eclipse.ui,
 org.eclipse.core.runtime,
 com.ibm.team.concert;bundle-version="3.0.0",
 com.ibm.team.log4j.ui;bundle-version="1.1.0",
 com.ibm.team.process.client;bundle-version="1.2.0",
 com.ibm.team.process.common;bundle-version="1.2.0",
 com.ibm.team.repository.client;bundle-version="1.1.0",
 com.ibm.team.repository.common;bundle-version="1.1.0",
 com.ibm.team.repository.common.json;bundle-version="1.1.0",
 com.ibm.team.repository.common.remoteaccess;bundle-version="1.1.0",
 com.ibm.team.repository.common.remoteaccess.auth;bundle-version="1.1.0",
 com.ibm.team.repository.common.serialize;bundle-version="1.1.0",
 com.ibm.team.repository.common.transport;bundle-version="1.1.0",
 com.ibm.team.rtc.common;bundle-version="3.0.0",
 com.ibm.team.rtc.common.scriptengine;bundle-version="2.1.0",
 com.ibm.team.workitem.client;bundle-version="2.2.0",
 com.ibm.team.workitem.common;bundle-version="2.3.0",
 org.eclipse.ui.console;bundle-version="3.5.0",
 com.ibm.team.foundation.client;bundle-version="1.1.0",
 RTC_Scripter_EMF.editor;bundle-version="2.0.0";visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Export-Package: com.ibm.cics.dev.rtcscripter.util.export
Import-Package: org.eclipse.core.resources


推荐答案

首先检查链接或插件安装程序关于版本和您正在使用的eclipse。
因为有很多eclipse,所以它必须是合适的。

First check the link or plug-in installer about version and what eclipse you are using. Because there are alot of eclipse so it must be suitable.

这篇关于Eclipse插件在部署时不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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