Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » progamatically invoke the codeformatter
progamatically invoke the codeformatter [message #115485] Tue, 11 November 2003 00:11 Go to next message
Eclipse UserFriend
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 #115517 is a reply to message #115485] Tue, 11 November 2003 04:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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
>
>
>
Re: progamatically invoke the codeformatter [message #115543 is a reply to message #115517] Tue, 11 November 2003 05:06 Go to previous message
Eclipse UserFriend
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
> >
> >
> >
Previous Topic:Suppress class editor on opening TypeHierarchyView
Next Topic:No applets found
Goto Forum:
  


Current Time: Tue Jul 22 09:26:31 EDT 2025

Powered by FUDForum. Page generated in 0.04898 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top