Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Format ICompilationUnit?
Format ICompilationUnit? [message #75980] Tue, 15 July 2003 09:18 Go to next message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

I want to ask if it's possible to call the Eclipse formatter (CTRL+SHIFT+F)
for an ICompilationUnit programmatically from my own Plugin?

Regards

Michael Täge
Re: Format ICompilationUnit? [message #76006 is a reply to message #75980] Tue, 15 July 2003 09:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam_kiezun.ch.ibm.remove.com

sure,
see these as a starting point: ICompilationUnit::getSource
ICompilationUnit::getBuffer()
ToolFactory:createCodeFormatter

hth
a.
--
eclipse.org
Re: Format ICompilationUnit? [message #76333 is a reply to message #76006] Tue, 15 July 2003 20:44 Go to previous message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Thanks a lot Adam, your 'starting point' was exactly the information I've
needed. It works really fine.

Regards

Michael

Am Tue, 15 Jul 2003 11:33:11 +0200 hat Adam Kiezun
<adam_kiezun@ch.ibm.remove.com> geschrieben:

> sure,
> see these as a starting point: ICompilationUnit::getSource
> ICompilationUnit::getBuffer()
> ToolFactory:createCodeFormatter
>
> hth
> a.
> --
> eclipse.org
>
>
>



--
-----------------------------------
Dipl. Ing. Michael Täge
Bauschlotterstr. 36
75177 Pforzheim
Fon: 07231 51278
Mobil: 0171 8067809
m-taege@t-online.de
Previous Topic:Re: Source locator does not exist. Error message
Next Topic:default source folder
Goto Forum:
  


Current Time: Fri Nov 08 21:56:06 GMT 2024

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

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

Back to the top