Skip to content
Daan van Yperen edited this page Jun 1, 2019 · 1 revision

IDE

IDEA

Live Template: amap - ComponentMapper field

Example: expands amap-TAB-Position-ENTER to

private ComponentMapper<Position> positionMapper;
  • template text:
private com.artemis.ComponentMapper<$COMPONENT$> $CAMEL_COMPONENT$Mapper;$END$
  • Variables
    • COMPONENT: Expression expectedType()
    • CAMEL_COMPONENT: Expression decapitalize(COMPONENT) skipIfDefined

Live Template: gmap - Get Component fromComponentMapper

Example: expands gmap-TAB-Position-ENTER to

final Position position = positionMapper.get(e);
  • template text:
final $COMPONENT$ $CAMEL_COMPONENT$ = $CAMEL_COMPONENT$Mapper.get(e);$END$
  • Variables
    • COMPONENT: Expression expectedType()
    • CAMEL_COMPONENT: Expression decapitalize(COMPONENT) skipIfDefined
Clone this wiki locally