Defining profile aliases

Depending on the type and size of your projects and the provisions of your IDE, it might be necessary to create several project modules in order to manage your codebase efficiently. In such a case all related modules should still receive the same code style.

To achieve and manage such a uniform style easily, you can map modules to one (logical) Jalopy profile that defines the code style. Make sure that the Auto-switch feature (see below) is enabled and Jalopy will automatically use the correct settings for each module.

Say you have a project "foo" which consists of three modules.

Figure 2.14. Sample Project With 3 Modules

Sample Project With 3 Modules

To map these modules to one Jalopy profile, choose the target profile in the list and press the Aliases... button. A dialog will be displayed that shows all defined aliases for the profile and lets you alter the alias definitions.

Figure 2.15. Profile Aliases Dialog

Profile Aliases Dialog

Press the Add... button to add a new alias for the profile.

Figure 2.16. Add new Profile Alias

Add new Profile Alias

You can either add the names of all modules as new aliases or when the modules share a common prefix - like in our example - use a wildcard alias to point to all modules in just one step. Simply put the * wildcard after the prefix and press the Add button.

The alias is then displayed on the list, but has not yet been created. You need to explicitly press the Save button to have your changes applied and any new aliases created or existing aliases removed!

Figure 2.17. Profile Aliases

Profile Aliases

Press the Save button to save your changes or Cancel if you you don't want to save your changes at this point.

Please note that the alias information of a profile is displayed as part of the tooltip (in square brackets). Move the mouse over a list entry, and the tooltip will appear shortly.

Since 1.2