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



title

3.4 Files Section


In the files section all input files and directories that are subject to the formatting are specified.



File System Tree


To display the files section choose the Files button in the section selector on the left side. In the files section you can define all input files that are part of your formatting task. To add files or directories to your current project use the checkbox which is located on the left hand side of each node in the file system tree.


Different file selection modes
Different file selection modes


To add or remove a single file to/from your project simply select or deselect the according checkbox.

Directories have three diffenrent selection states: unselected, selected and recursively selected. The first click on a unselectd directory checkbox marks the directory as selected. This means the directory and all its containing files but not its containing directories are part of project. A second click on the directory checkbox sets the directory selection state to recursively selected. That means the directory and all its subdirectories are part of the current project. The checkbox of a recursivly selected directory appears as selected and pressed. A third click on the same checkbos sets the directory to its unselected state again.

NOTE: If a directory is selected/recursively selected all containing files/files and directories are shown selected and disabled. This means you can't deselect them without desecting the parent directory first.



Selected Files List


The selected files list shows all directly selected files/directories in a sequential list. The icon on the left side of the list item marks the selection state. A single click on a item in the selected files list shows the file/directory in the file system tree. Using the DEL-Key you can delete items from the selected files list without using the checkbox mechanism of the file system tree.


List of selected files
List of selected files


Double clicking a file item in the file system tree or in the selected files list opens that file in the source area if it has a registered extension.



Additional Runtime Options


The toolbar which is located above the file system tree and the selected files list controls additional runtime options:

Enable File Filter - Enable a file filter. A file filter can be used to filter your input files.
Edit/Select File Filter Mask - The file filter mask specifies the file filter. File filter masks can contain the wildcard characters '*' and '?'. The character '*' substitutes any sequence of characters and the character '?' substitues one single character. You can use multiple wildcard expressions separated by commas. A file is being accepted if its filename matches any of the specified wildcard expressions.
Enable Target Directory - To enable the target directory mode. All formatted files will be written to the specified target location.
Select Target Directory - Selects the target directory.
Copy Resources - To enable the copy resources mode. All unformattable
files will be copied to the specified target location.
The copy resources mode is only available when
target directory mode is enabled.

Please note: The copying of resource files is only relevant for files that are part of the project.
If you use file filters only files that match the file filter are part of the project.



Preview Area


The preview area can be used to monitor source files. By double clicking a file in the file system tree or in the selected files list. Double clicking a formatting report opens the relevant files in the source area too. For a detailed description of the source area toolbar please refer to the Jindent Customizer section.


See also... See also: Jindent - Jindent Customizer - Preview




Reports Area


After a formatting job has finished the reports area shows all warnings and errors that may have occured. A double click on a warning/error message shows the according file in the source area. If the warning/error message refers to different source and target files (target directory mode) both files will be shown in a splitted source area. If the message contains row and column details the source area navigates to that location automatically.


Reports Area
Reports Area