Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » programatically invoke code formatter
programatically invoke code formatter [message #154974] Mon, 10 November 2003 13:08 Go to next message
Eclipse UserFriend
Hi,

is there a way to programatically invoke to 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 lloking for a more convenient way to do this.

Any suggestions?
Thank you,
Lars
Re: programatically invoke code formatter [message #154983 is a reply to message #154974] Mon, 10 November 2003 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cuthis.mit.edu.andthis

this is a jdt question. please ask it on the proper newgroup.

a.
ps. ToolFactory is very convenient. never failed for me.
Re: programatically invoke code formatter [message #155222 is a reply to message #154983] Tue, 11 November 2003 00:22 Go to previous message
Eclipse UserFriend
OK, thank you...

adam kiezun wrote:

> this is a jdt question. please ask it on the proper newgroup.

> a.
> ps. ToolFactory is very convenient. never failed for me.
Previous Topic:Print Option
Next Topic:org.eclipse.swt.SWTException: Unsupported or unrecognized forma
Goto Forum:
  


Current Time: Wed May 07 23:42:53 EDT 2025

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

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

Back to the top