/WicketLambdaFold

Primary LanguageKotlinOtherNOASSERTION

WicketLambdaFold

Build Version Downloads

A plugin for IntelliJ IDEA which folds/shortens wicket lambda model's getter and setter references. So LambdaModel.of(model, Entity::getSomething, Entity::setSomething) becomes LambdaModel.of(model, Entity::get/setSomething).

Usages of PropertyModel highlighted as warnings.

Also adds intentions to create HTML and .properties files for Wicket panels and pages.

Rationale

Some wicket teams consider PropertyModel harmful because it is not type safe. Sometimes in bigger projects it's really hard to maintain all property models when methods get renamed. LambdaModel and model maps help to reference properties via function references which are easily refactored by IDEs, and nicely spotted by compilers.

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "WicketLambdaFold" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.