Skip to main content
Jump to: navigation, search

EASE/Module Documentation

Module Documentation

Module documentation needs to be provided as eclipse help files in the same plugin as the module implementation. Creation of such files by hand is not recommended and also not documented. Instead EASE provides a doclet that can be used with the javadoc tool to create such files either manually or fully integrated within a tycho build.


The doclet is built nightly and can be downloaded from our jenkins server.

Your class documentation needs to be well formed. Default javaDoc html files do accept XML errors like missing closing tags or unescaped HTML entities like '<' or '>' as part of the plain text. EASE does not, as it uses an XML parser to read these html files. So make sure your comments are clean. The doclet will run tests on the output to make sure we do not store invalid xml files.

Your extension point ID for the module needs to follow the naming scheme: <pluginId>.<moduleId_without_any_further_dots>. If this is not the case, linking between modules will not work correctly.

Run the doclet manually

Run for Java 8 or older:

 <JDK8_location>\bin\javadoc.exe" -sourcepath <projectRoot>\src -root <projectRoot> -doclet org.eclipse.ease.helpgenerator.V8ModuleDoclet -docletpath ease.module.doclet.jar -failOnHTMLError true -failOnMissingDocs true -link <package_names_to_look_for_classes>

Run for Java 9 or newer:

 <JDK9_location>\bin\javadoc.exe" -sourcepath <projectRoot>\src -root <projectRoot> -doclet org.eclipse.ease.helpgenerator.V9ModuleDoclet -docletpath ease.module.doclet.jar -failOnHTMLError true -failOnMissingDocs true -link <package_names_to_look_for_classes>

Run the doclet from maven

 				<additionalparam>-root ${basedir} -failOnHTMLError true
 					-failOnMissingDocs true</additionalparam>

${doclet.path} needs to be set correctly to the location of the doclet.jar

Make sure to select the right doclet V8ModuleDoclet or V9ModuleDoclet depending on your java version.

As reported on the mailing list use maven-javadoc-plugin:2.9.1. Newer versions are not guaranteed to work!

Documentation links

Links to classic javadoc files, eg {@link Collection#toString()} will automatically be resolved correctly. However the current doclet implementation will always create links for documenation created with java9 or lower. Form Java10 onwards the style of HTML pages changed, therefore links will not work correctly anymore.

You may also link to other module descriptions or methods within the same module. Therefore use

  • {@module #methodName()}
  • {@module #fieldName}
  • {@module}

Documenting examples

To provide examples of method calls you may use the @scriptExample annotation in comments:

  * @scriptExample thisIsYourCall("with", "some", "parameters") ... and this is the description
  * @scriptExample thisIsYourCall("with", "other", "parameters") ... some changed behavior

This type of examples is useful for simple showcases of a function call. They do not work for complex or multiline statements. Best use '...' to separate code from description. If this token cannot be found we try to find the end of the function call by counting closing brackets.

Back to the top