|Re: organize imports beautifier? [message #61387 is a reply to message #61341]
||Mon, 18 May 2009 22:00
| Karsten Thoms
Registered: July 2009
I have founded the Google Code project for the Hybridlabs Beautifier -
and made it ready for M2T. The JavaImportBeautifier class now implements
both PostProcessor interfaces, from oAW4 and M2T. This way it is
We won't be able to migrate the import organizing feature to M2T, it is
dependend on Antlr. So the component will stay standalone, and we should
discuss therefore further issues outside this list.
A first distribution of the beautifier is available:
On 17.05.09 20:25, Karsten Thoms wrote:
> I have agreement from Karsten Klein to migrate the Hybridlabs beautifier
> to Google Code. It cannot be itself hosted at M2T since it has a
> dependency to Jalopy for code formatting. It might be that I take over
> the import organizing feature to M2T, depending on IP approval and time.
> For a first approach I have enough to do just to found the project at
> Google and add a component for M2T compliance.
> On 16.05.09 00:30, Miles Parker wrote:
>> Thanks Paul,
>> I heard from Karsten on oAW list that they're working to try to get it
>> FWIW: The hybridlabs functionality is actually a bit different from that
>> in JDT -- it takes fully qualified inline package names and makes them
>> into import statements. One could strip all qualifications and then do
>> the import but this wouldn't handle the many cases where class names are
>> shared, or for example where some one uses java.awt.List and
>> java.util.List in the same class. :)
>> In practice what I have been doing is using the oAW M2T beautifier which
>> uses the JDT settings IIRC, and then using the hybrid labs beauifier
>> with formatting turned off just to get the import qualified package
>> On 2009-05-15 06:06:10 -0700, Paul Elder <firstname.lastname@example.org> said:
>>> I'm not aware of any plans within the various M2T components.
>>> As for implementing such a thing in Eclipse, the easiest approach
>>> would be to make use of the Java Development Tools (JDT) that
>>> currently implements the Organize Imports command. I haven't looked,
>>> but I'd guess you'd end up with a dependency on JDT.
Powered by FUDForum
. Page generated in 0.01719 seconds