这是我要移植的 Eclipse 模板:
${:import(org.apache.log4j.Logger)}
private static final Logger LOG = Logger.getLogger(${enclosing_type}.class);
我在 IDEA 中的当前版本如下:
private static final Logger LOG = Logger.getLogger($CLASS_NAME$.class);$END$
where$CLASS_NAME$
被配置为className()
用作其表达式。
不幸的是,我没有找到任何关于添加导入语句的文档。是否有与 Eclipse 等价的东西${:import(...)}
?