Skip to content

Instantly share code, notes, and snippets.

@dnsfdv
Created August 11, 2012 12:27
Show Gist options
  • Save dnsfdv/3324185 to your computer and use it in GitHub Desktop.
Save dnsfdv/3324185 to your computer and use it in GitHub Desktop.
Eclipse templates
//log4j import
${:import(org.apache.log4j.Logger)}
private static final Logger log = Logger.getLogger(${enclosing_type}.class);
//slf4j import
${:import(org.slf4j.Logger,org.slf4j.LoggerFactory)}
private static final Logger log = LoggerFactory.getLogger(${enclosing_type}.class);
//New property
private ${Type} ${property};
public ${Type} get${Property}() {
return ${property};
}
public void set${Property}(${Type} ${property}) {
this.${property} = ${property};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment