Jindent - Java Source Code Formatter http://www.jindent.com
 



title

5.3.2 File Extensions Manager


title
5.3.2.1 File Extensions Manager

Extension manager

Extension manager

Currently Jindent only supports the programming languages 'Java 5.0' and 'Java 5.0 containing SQLJ statements'.
In future releases Jindent will support more languages. For instance: JSP (Java Server Pages), Javascript, etc.
For that reason we already introduce an extension manager.

An extension manager is nothing but a list of file extensions (like: java or sqlj) which are connected with formatter modules.

Currently there are only two formatter modules available:

Formatter name: Description: Default extension:
Java Formatter Formatter for pure Java files. java
Java/SQLJ Formatter Formatter for Java files containing SQLJ statements. sqlj
C Formatter Formatter for C files. c
C++ Formatter Formatter for C++ files. cpp, cc
C/C++ Header Formatter Header Formatter for C and C++ files. h, hh, hpp


If Jindent starts formatting a source file then it extracts the extension from its filename, looks it up in the extension manager list and uses the language formatter connected with this extension to format the source file.
If the extension is not contained in the list then Jindent does not format this file.

The advantage of the extension manager comes up if users format directories or projects which contain several files of different programming languages. If the extension manager is configured properly then Jindent is able to distinguish all the different file types and uses always the correct formatter module to format each source code file.


Note to Java and Java/SQLJ Formatter: Of course it is possible to use Java/SQLJ Formatter to format pure Java files without any SQLJ statements, but since the pure Java Formatter works a bit faster we recommend its use wherever possible.

Usage of buttons:


Please note: If you are not sure how to configure Jindent's extension manager then please do not change its default values.