Xtextのインストール方法について。
Xtextをインストールすには、EclipseからUpdate
Siteを通してインストールする方法と、Xtext入りのEclipseそのものをダウンロードする方法がある。
|
Xtext入りのEclipse4.3(Kepler)をダウンロードする方法は、ただ単にダウンロードして解凍するだけ(笑)
Windows版の場合、eclipse\eclipse.exeを実行するとEclipseが起動する。
Xtext2.7.1入りのEclipse4.4(Luna)は、Eclipseのサイトからダウンロードする。[2017-05-30]
Windows版の場合、eclipse\eclipse.exeを実行するとEclipseが起動する。
Eclipse4.3で使っていたXtextのワークスペースをそのままEclipse4.4で開くと、SWT関連クラスのimportでエラーになることがある。
package com.example; ←The type org.eclipse.swt.widgets.Composite cannot be resolved. It is indirectly referenced from required .class files import org.eclipse.swt.widgets.Composite; ←The import org.eclipse.swt.widgets.Composite cannot be resolved 〜
The project was not built since its build path is incomplete. Cannot find the class file for org.eclipse.swt.widgets.Composite. Fix the build path then try building this project example Unknown Java Problem
Eclipse4.4で新しいワークスペースを作り、Eclipse4.3のワークスペース内のプロジェクトをインポートすれば、このエラーは出ない。