views:

200

answers:

2

Some time ago I wrote an Eclipse plugin which makes use of JDT to do some parsing. Now I am thinking of making a command-line version of this app. Naturally, I hope to reuse the parsing code, so I need to get JDT to work outside Eclipse. Is there any way I can accomplish this (maybe build some wrappers, etc)? Are there any ports of the JDT library that provide the same API / functionality but work independently of Eclipse?

Any help will be greatly appreciated. Thanks.

A: 

You can use JDT Core in the command line. Parsing, AST, rewriting everything can be done without the UI.

Prakash G. R.
A: 

The JDT is divided into two distinct parts. The parsing parts should all be in plugins which have no UI-dependencies at all. I think they do have a dependency on the Eclipse runtime, which means that you more or less need to create a "headless RCP application".

JesperE
Hmm I can't give "Accepted answer" to both :( Both this post and the one below are useful, and searching for "headless RCP application" put me on what seems to be the right track. Thanks!
alexloh