Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Using the JDT CodeFormatter without jface
Using the JDT CodeFormatter without jface [message #258649] Thu, 12 February 2009 09:16 Go to next message
Eclipse UserFriend
Hi Everyone,

i'd like to use the jdt code formatter to beautify java code created by
some sort of code generator. The method "format()" in
org.eclipse.jdt.core.formatter.CodeFormatter returns a jface TextEdit
which can be applied to a jface IDocument. Unfortunately my target
platform doesn't have the jface-bundles installed :-(

So my question is: Is there a way to use the jdt code formatter without
having jface installed?

Thanks,
Ralf!
Re: Using the JDT CodeFormatter without jface [message #258657 is a reply to message #258649] Thu, 12 February 2009 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Ralf Grossklaus wrote:
> Hi Everyone,
>
> i'd like to use the jdt code formatter to beautify java code created
> by some sort of code generator. The method "format()" in
> org.eclipse.jdt.core.formatter.CodeFormatter returns a jface TextEdit
> which can be applied to a jface IDocument. Unfortunately my target
> platform doesn't have the jface-bundles installed :-(
You don't need JFace. You only need the org.eclipse.text plug-in.

Dani
>
> So my question is: Is there a way to use the jdt code formatter
> without having jface installed?
>
> Thanks,
> Ralf!
Re: Using the JDT CodeFormatter without jface [message #258669 is a reply to message #258657] Thu, 12 February 2009 11:51 Go to previous message
Eclipse UserFriend
Daniel Megert schrieb:
> Ralf Grossklaus wrote:
>> Hi Everyone,
>>
>> i'd like to use the jdt code formatter to beautify java code created
>> by some sort of code generator. The method "format()" in
>> org.eclipse.jdt.core.formatter.CodeFormatter returns a jface TextEdit
>> which can be applied to a jface IDocument. Unfortunately my target
>> platform doesn't have the jface-bundles installed :-(
> You don't need JFace. You only need the org.eclipse.text plug-in.
>
> Dani
>>
>> So my question is: Is there a way to use the jdt code formatter
>> without having jface installed?
>>
>> Thanks,
>> Ralf!

Thank's for the fast answer!

Ralf
Previous Topic:Visible methods of ITypeBinding
Next Topic:How to find equivalent node in a reparsed AST (or, better idea for inserting comments)
Goto Forum:
  


Current Time: Thu Apr 24 10:58:19 EDT 2025

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

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

Back to the top