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



title

4 Jindent Customizer


The Jindent Customizer is an editor component for Jindent settings files. The Customizer is part of all Jindent plugins and part of the Jindent Commander. All GUI elements of the Customizer follow the common design rules: Boolean variables are represented by checkboxes, strings can be entered in fields, multi-line templates in text areas and so on.


Jindent Customizer
Jindent Customizer



Nevertheless we would like to provide a short list of some helpful Customizer features in this section.



Context Menu In Templates


In all template settings (fields and areas) it is possible to open a context menu with right mouse click.
This context menu provides quick access to all user defined and auto-generated environment variables.


Example of context menu in JavaDoc template
Example of context menu in JavaDoc template




Synchronising template settings


While entering multi-line templates in text areas it is not possible to preview the new entered values by hitting return. Instead hitting return sets cursor in text areas to a new line.
To quickly activate new template settings just use your mouse and click outside the template and Jindent will automatically preview all new changes.


Click outside the template
Click outside the template




Help-On-Click


The complete Jindent Customizer provides a Help-On-Click system for all settings. Just move to the question mark symbol located right to every setting...



Example of Help-On-Click system
Example of Help-On-Click system


... and click left mouse button to open the Jindent help system. The Jindent manual will open up on a page explaining the setting you are looking for.



Browsing the help system
Browsing the help system





Sorting Table Entries


The most tables in Jindent's customizer can be sorted by values. Just click on the table header and the corresponding column will be sorted. Click the header again and the sorting order will change from ascending to descending and vice versa.


Click on the table header to sort values in columns
Click on the table header to sort values in columns





title

4.1 Preview


Preview Dialog


If settings in Jindent's Customizer will be changed then a preview dialog opens up showing a source code preview.

Customizer's preview dialog
Customizer's preview dialog


The preview dialog shows two tabs named 'Original' and 'Formatted'.
'Formatted' shows the preview source code formatted due current Jindent Customizer settings. This can be considered as a runtime preview.
'Original' shows the source code before being formatted with the current Customizer settings.



Toolbar Of Preview Dialog


Add external file to preview list. This feature enables users to choose own files for Jindent's preview dialog.
Toggles visualization of line break symbol. This feature is helpful to recognize blank lines and line breaks within the preview source code.
Toggles visualization of tab stop symbol. This feature is helpful to recognize tabulator stops within the preview source code.
Toggles visualization of white space symbol. This feature is helpful to recognize white spaces within the preview source code.
Zoom in preview source code. Zooming can be helpful if line wrapping settings are configured. With a small zoom size it is possible to see the whole source code and the right margin which denotes the maximal line length.
Zoom out preview source code.
Set zoom to default value.
Scale zoom of preview source code.
Fits width of preview source code into dialog window.



Preview Messages


The message box provides a preview of enabled message report.

Example of reported messages
Example of reported messages


Double click on a message and the preview window will jump to the source code line which caused this message.

To hide the message box just click on the down arrow of the GUI separator.

Click on down arrow to close message box
Click on down arrow to close message box




Changing Preview Source Files


Users can build a list of own external preview files. Just click right mouse button in the middle of the preview dialog and a context menu opens up.


Click right mouse button to get preview context menu
Click right mouse button to get preview context menu


Choose 'Add New File To Preview List' and select the preview file from your harddisc which you would like to see in the preview dialog.
Of course it is possible to add more than one file to your preview list.

Click right mouse button again and you can jump from one preview file to another.

Use preview list to jump from one preview file to another
Use preview list to jump from one preview file to another


If you would like to go back to Jindent's internal preview files just choose 'Use Jindent's Preview Files'.