Setup Eclipse to conform to the Kieker Coding Conventions

The Kieker Coding Conventions are a derivate of the  Eclipse Coding Conventions (ECC) which are by themselves a derivate of the  Java Coding Conventions (JCC) for Java.

We define two deviations from the ECC which are:

  1. We allow 165 characters per line instead of only 80 characters. As modern screens are way bigger than those decades ago, the limitation to 80 characters in conjunction with human-readable method names result in ugly line-wrappings. To reduce this problem we double the line length.
  2. All parameters of methods are declared final as long they are not modified internally in the method.

To setup these changes in Eclipse we provide the following tutorial.

Preliminary Informations

This tutorial is for Eclipse Indigo. Therefor the setup may differ in other versions of Eclipse. As we know that people might have different coding conventions in different projects, this tutorial instructs how to setup the formatter and the editor in a project specific manner. If you want these coding styles to be present in all projects you have to deviate from the given instructions or reproduce the setup for every project.

Now, start Eclipse. Select a project in the Package- Explorer. Right-click on it and select the Properties option, which is the last entry in the context menu. It opens the properties dialog for the project.

Setup the Clean Up


Setup the Formatter


Setup the Organize Imports

Setup the Save Actions

Save actions are applied to the content while saving the file. the are setup in the project properties dialog. If you previously closed that dialog, reopen it by selecting the project in the Package Explorer. Right-click on it and select the Properties option, which is the last entry in the context menu. It opens the properties dialog for the project.