ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: Ibator plugin use and future plans
Date Tue, 23 Jun 2009 14:54:36 GMT
Warning - heavy Eclipse acronyms follow!

The Java AST is a part of JDT (not EMF).  So there needs to be a standalone
version of JDT.  I haven't looked into that for a couple of years, but it
seems that there is some separate JDT SDK available for download now at the
Eclipse site - so maybe it's possible now.  I'll look into it.
Jeff Butler

On Tue, Jun 23, 2009 at 4:53 AM, Chad McHenry <mchenryc@gmail.com> wrote:

> On Mon, Jun 22, 2009 at 10:45 AM, Jeff Butler <jeffgbutler@gmail.com>wrote:
>
>> Several topics:
>> 1. Java file merging
>>
>> The code for merging Java files is only in the Eclipse plugin.  It uses
>> the Eclipse AST parser and AST rewriter and cannot run outside of Eclipse.
>>  If you want to merge Java code, you must run in Eclipse.
>>
>> In the far future, I hope to enable Java merging outside of Eclipse.  The
>> problem is that it's just so easy in Eclipse, and so difficult elsewhere!  I
>> think the long term solution is to write a specialized Java parser for
>> Ibator using ANTLR or the like.  Parsing Java source code is a non-trivial
>> task and I have no interest in reinventing the wheel - so probably something
>> like ANTLR is the right answer ultimately.  If anyone is interested in
>> making an important contribution to Ibator this would be a good area to look
>> into :)
>>
>
> It may be possible to use AST standalone (much better than reinventing!)
> after navigating the licencing issues. AST is built on EMF which apparently
> can be used in a standalone app [1]. It would be worth it to build a sample
> app, to see just how tied to eclipse AST and EMF are.
>
> [1]
> http://wiki.eclipse.org/EMF/FAQ#How_do_I_use_EMF_in_standalone_applications_.28such_as_an_ordinary_main.29.3F
>
>
>

Mime
View raw message