progamatically invoke the codeformatter [message #115485] |
Tue, 11 November 2003 00:11  |
Eclipse User |
|
|
|
Hi,
is there a way to programatically invoke the code formatter on a given java
file or ICompilationUnit?
I could not find a corresponding action similar to OrganizeImportsAction.
I know there is the Toolfactory class where I can get a codeformatter
instance, but i was looking for a more convenient way (for instance like
OrganizeImportsAction) to do this.
Any suggestions?
Thank you,
Lars
|
|
|
|
Re: progamatically invoke the codeformatter [message #115543 is a reply to message #115517] |
Tue, 11 November 2003 05:06  |
Eclipse User |
|
|
|
Ok,
I filed a feature request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46398
Regards,
Lars
Daniel Megert wrote:
> Lars Ködderitzsch wrote:
> >Hi,
> >is there a way to programatically invoke the code formatter on a given java
> >file or ICompilationUnit?
> >
> >I could not find a corresponding action similar to OrganizeImportsAction.
> >
> >I know there is the Toolfactory class where I can get a codeformatter
> >instance, but i was looking for a more convenient way (for instance like
> >OrganizeImportsAction) to do this.
> >
> >
> Currently there's no such API. Please file a feature request.
> Dani
> >Any suggestions?
> >Thank you,
> >Lars
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.04898 seconds