Here is the Eclipse template that I want to port:
${:import(org.apache.log4j.Logger)} private static final Logger LOG = Logger.getLogger(${enclosing_type}.class)
Now its possible to add live templates with static imports:
You have to check static import in Options
@org.junit.Test public void should$EXPR$when$CONDITION$() { org.junit.Assert.assertThat(null, org.hamcrest.CoreMatchers.is(org.hamcrest.CoreMatchers.nullValue())); }