如何使我的插件向后兼容其他版本的eclipse [英] how to make my plugin backward compatible to other versions of eclipse

查看:416
本文介绍了如何使我的插件向后兼容其他版本的eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse靛蓝中创建了一个eclipse插件,但是当我尝试在helios中安装它时,会得到以下错误。

 需要bundle org.eclipse.jdt.core 3.7.3,但无法找到
无法满足依赖

如何使我的插件与所有版本的eclipse兼容?还有必要提供Bundle-RequiredExecutionEnvironment?



Greg,我的清单文件在

  Manifest-Version:1.0 
Bundle-ManifestVersion:2
Bundle-Name:Codeanalysis
Bundle-SymbolicName:codeanalysis;单例:= true
Bundle-Version:1.0.0.qualifier
Bundle-Activator:codeanalysis.Activator
Require-Bundle:org.eclipse.ui,
org.eclipse。 core.runtime,
org.eclipse.jdt.core; bundle-version =3.7.3,
org.eclipse.core.resources; bundle-version =3.7.101,
org.eclipse.jdt.ui; bundle-version =3.7.2
Bundle-ActivationPolicy:lazy
Bundle-RequiredExecutionEnvironment:JavaSE-1.6


解决方案

Bundle-RequiredExecutionEnvironment 与Eclipse或插件的版本无关。



仔细查看清单内容和您收到的错误消息。我会补充说,更改数字不会自动使其兼容 - 您应该对Helios进行测试以确保。


I created a eclipse plugin in eclipse indigo but when i try to install it in helios i get the below error.

requires 'bundle org.eclipse.jdt.core 3.7.3' but it could not be found
  Cannot satisfy dependency

How to make my plugin compatible with all versions of eclipse? Also is it mandatory to give Bundle-RequiredExecutionEnvironment?

Greg, my manifest file is below

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Codeanalysis
Bundle-SymbolicName: codeanalysis; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: codeanalysis.Activator
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.jdt.core;bundle-version="3.7.3",
 org.eclipse.core.resources;bundle-version="3.7.101",
 org.eclipse.jdt.ui;bundle-version="3.7.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

解决方案

Bundle-RequiredExecutionEnvironment has nothing to do with the version of Eclipse or a plug-in's version.

Look more closely at the manifest contents and the error message you received. I would add that changing the numbers doesn't automatically make it compatible--you should test against Helios to be sure as well.

这篇关于如何使我的插件向后兼容其他版本的eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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