Plug-inだけどコンソールみたいな代物らしい。
DOM/AST APIは headless Eclipse じゃないダメらしい。
http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg15535.html
作り方
http://www.developertesting.com/archives/month200508/20050823-HeadlessHelloWorldInEclipse.html
- Plug-in project作成
- This plug-in will make contributions to the UI オフ
- Create a plug-in using one of templates オフ
- Extentionのところで org.eclipse.core.runtime.apllications を追加
- 追加されたモノを右クリック New → application
- さらに New → run
- class にこれから作るクラスを指定
- org.eclipse.core.runtime.IPlatformRunnable を実装したクラス作成
- plugin.xmlのextentionのところに id="〜" を追加
- run as → Eclipse application で実行可能