首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >能够使用xtext编辑器的完整TargetPlatform

能够使用xtext编辑器的完整TargetPlatform
EN

Stack Overflow用户
提问于 2020-07-06 16:27:18
回答 2查看 119关注 0票数 0

我需要集成xtext与其他基于Eclipse的工具(基于RCP插件)。我使用了eclipse示例xtext项目中提供的目标平台作为示例:

如果我从org.eclipse.xtext.example.domainmodel.releng使用目标平台,我的工作区中看不到任何错误。目标平台:

在设置目标平台并运行Eclipse运行时应用程序之后,我无法在Eclipe运行时实例中使用xtext编辑器。

编辑:更改目标平台后,无法使用Domainmodel编辑器打开:

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-07-07 17:22:11

目标平台可能实际上是有缺陷的:在2019-12年启动Eclipse运行时(您似乎正在使用)时会显示大量错误。

这可能是由includeMode="slicer"导致的,它告诉PDE不要获取额外的依赖项。我制作了以下目标平台,它似乎工作得很好:

代码语言:javascript
运行
复制
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<target name="Xtext Domainmodel Example - Eclipse 2019-12" sequenceNumber="1526502000">
  <locations>
      <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
          <repository location="http://download.eclipse.org/releases/2019-12"/>
          <unit id="org.eclipse.emf.sdk.feature.group" version="2.20.0.v20191028-0905"/>
          <unit id="org.eclipse.jdt.feature.group" version="3.18.200.v20191210-0610"/>
          <unit id="org.eclipse.sdk.feature.group" version="4.14.0.v20191210-0610"/>
          <unit id="org.eclipse.xtext.sdk.feature.group" version="2.20.0.v20191202-1256"/>
      </location>
  </locations>
</target>
票数 1
EN

Stack Overflow用户

发布于 2020-07-11 16:30:27

下面的目标平台适用于我,使用的是xtext 2.21:

代码语言:javascript
运行
复制
<target name="Xtext Domainmodel Example - Eclipse Photon" sequenceNumber="1526501985">
  <locations>
    <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
      <unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
      <unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
      <unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
      <unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
      <repository location="https://download.eclipse.org/releases/2019-12"/>
    </location>
    <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
      <unit id="org.eclipse.emf.mwe.sdk.feature.group" version="0.0.0"/>
      <unit id="org.eclipse.emf.mwe2.runtime.sdk.feature.group" version="0.0.0"/>
      <unit id="org.eclipse.emf.mwe2.language.sdk.feature.group" version="0.0.0"/>
      <repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.11.2"/>
    </location>
    <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
        <unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
        <repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.21.0/"/>
    </location>
    <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
      <unit id="org.objectweb.asm" version="7.2.0.v20191010-1910"/>
      <unit id="org.objectweb.asm.tree" version="7.2.0.v20191010-1910"/>
      <unit id="com.google.inject" version="3.0.0.v201605172100"/>
      <unit id="org.apache.commons.cli" version="1.2.0.v201404270220"/>
      <unit id="com.google.guava" version="27.1.0.v20190517-1946"/>
      <unit id="io.github.classgraph" version="4.8.35.v20190528-1517"/>
      <repository location="https://download.eclipse.org/tools/orbit/downloads/2019-12"/>
    </location>
    <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
      <unit id="org.eclipse.draw2d.feature.group" version="3.10.100.201606061308"/>
      <repository location="https://download.eclipse.org/tools/gef/updates/legacy/releases"/>
    </location>
  </locations>
</target>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62752073

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档