/mapstruct-eclipse

An Eclipse plug-in for working with MapStruct

Primary LanguageJavaOtherNOASSERTION

mapstruct-eclipse

An Eclipse plug-in for working with MapStruct

Eclipse Update Site

Current Features

Code-Completions

  • Completion of target and source properties in @Mapping annotation for bean mappings
  • Completion of target and source enum constants in @ValueMapping annotations for enum mappings
  • Completion of componentModel values in @Mapper annotation

Quick-Fixes

  • Quick-Fixes for error/warning message "Unmapped target property: ...":
    • Ignore unmapped target property adds @Mapping( target = "prop", ignore = true ) to the method
  • Quick-Fixes for error message "Can't map property X prop to Y prop. Consider to declare/implement a mapping method ...":
    • Add method: Y toY(X prop) adds an appropriate method declaration to the mapper.
    • Ignore unmapped target property adds @Mapping( target = "prop", ignore = true ) to the method.

Screenshots

Completion for Properties and Enum Constants

Code completion for properties and enum constants

Quick Fix to Add Missing Property Mapping Method

Quick Fix to add missing property mapping method

Quick Fix to Ignore an Unmapped Property

Quick Fix to ignore an unmapped property

Links