简体   繁体   English

eclipse xtext 插件版本与 eclipse IDE 的兼容性

[英]eclipse xtext plugin versions compatibility with eclipse IDE

I made a plugin in eclipse juno using xtext, I package my plugin using the following tutorial: http://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin ... sec 6.Create update site for your plug-in and I install it in the same version of eclipse IDE and the installation was successful.我使用 xtext 在 eclipse juno 中制作了一个插件,我使用以下教程打包我的插件: http ://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin ... sec 6.Create update site for your plug -in 和我安装在同一版本的eclipse IDE中,安装成功。 I need install it in others versions of eclipse's (Helios, Galileo, etc.) but when i try to install in Helios appear the following message:我需要在 eclipse 的其他版本(Helios、Galileo 等)中安装它,但是当我尝试在 Helios 中安装时出现以下消息:

Cannot complete the install because one or more required items could not be found.
  Software being installed: MView Source 1.0.0.201308011127 (MView.feature.group 1.0.0.201308011127)
  Missing requirement: MView Source 1.0.0.201308011127 (MView.feature.group 1.0.0.201308011127) requires 'org.eclipse.xtext 2.0.0' but it could not be found.

I searched for org.eclipse.xtext 2.0.0 jar to add to the dependencies but i dont found it.我搜索了 org.eclipse.xtext 2.0.0 jar 以添加到依赖项,但我没有找到它。 I don't know if this will work but I wanted to ask if there are some way to make my plugin compatible with various versions of eclipse IDE and how.我不知道这是否可行,但我想问一下是否有某种方法可以使我的插件与各种版本的 Eclipse IDE 兼容以及如何兼容。 compatible with backward versions and forward versions.兼容向后版本和向前版本。 I would appreciate any information about it.我将不胜感激任何有关它的信息。 Sorry for my English Thank you very much.对不起,我的英语非常感谢。 =) =)

If an Eclipse installation does not contain Xtext, you need to provide Eclipse with the URL of the plugin repository (sometimes called update site) where it is located.如果 Eclipse 安装不包含 Xtext,则需要向 Eclipse 提供插件存储库(有时称为更新站点)所在的 URL。 That will enable Eclipse to discover and install your dependencies when installing your plugin.这将使 Eclipse 在安装插件时发现并安装您的依赖项。 You can find the URLs that you need on Xtext website.您可以在 Xtext 网站上找到您需要的 URL。

http://www.eclipse.org/Xtext/download.html http://www.eclipse.org/Xtext/download.html

Try to see the version of XTEXT plugin in both of eclipse instalations:尝试在两个 Eclipse 安装中查看 XTEXT 插件的版本:

Help > About Eclipse > Installation Details. 

In Plugins tab, search for Xtext UI Core在插件选项卡中,搜索Xtext UI Core

Sorry my english.对不起我的英语。

A complete overview on:完整概述:

  1. All XText versions所有 XText 版本
  2. The dependent XText core component versions依赖的 XText 核心组件版本
  3. The corresponding Eclipse platform version对应的Eclipse平台版本
  4. Links to the appropriate download / update sites指向相应下载/更新站点的链接

can be found here: XText versions, dependencies and Eclipse platform matrix可以在这里找到: XText 版本、依赖项和 Eclipse 平台矩阵

An pretty useful example for a target platform configuration is there as well!还有一个非常有用的目标平台配置示例!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM