Zitat von Jeremias Maerki <[email protected]>:

Sorry, I get it now. You really were asking for the source code formatter
settings for PDFBox. I don't think there is such a configuration file
anywhere. We do have a Checkstyle config file in the trunk's root:
https://svn.apache.org/repos/asf/pdfbox/trunk/

I guess we'd have to jointly develop such a configuration and it would
have to fit the Checkstyle configuration, too.

But...personally, I never use the "Format" function in Eclipse since it
can mess up source code that has been formatted by hand for extra
readability. Also, PDFBox's source code does not have a very uniform

Thats the point. A good formatter keeps the readability. The only point it can mess up is with comments that was written inside /* */. But the whole code will look homogeneous and don't need to format by hand any more.

code style if you go into details like spaces inside braces etc.
Applying the format command could increase the noise rate a lot when
doing commits.

Thats the point, normally it will decrease the noise rate if everyone use the same format or the commiter format the submitted code before commiting it.

At the moment I have the problem with the formating and can't compare my changes against the trunk. The solution will be disable the formater and do it by hand.


I don't know what everybody thinks about the "Format" function and a
possible normative config file. The above is just my personal view.

On 22.08.2011 12:19:20 Thomas Chojecki wrote:

Zitat von Jeremias Maerki <[email protected]>:

> Hi Thomas,
Hi Jeremias,

> what do you mean by "Formatter"? A viewer component for the Eclipse RCP?
Eclipse has a buildin Code Formatter. There can be specified different
rules for the code styling and after pressing Ctrl + Shift + F eclipse
will format the given sourcecode.

> A formatter in Eclipse is usually a component that can reformat a
> certain programming language, AFAIU, so that wouldn't apply to PDFBox.
I don't know what you mean exactly with reformating a programming
language, but it may reformat the source code.

You can find this option under:
Window -> Preferences -> Java -> Code Style -> Formatter

>
> On 22.08.2011 10:13:49 Thomas Chojecki wrote:
>> Hallo all,
>> do someone know where I can get a pdfbox specific "Formatter" for
>> my eclipse?
>>
>> Best regards
>> Thomas
>
>
>
>
> Jeremias Maerki






Jeremias Maerki



Reply via email to