sysout Eclipse replaces the keyword with System.out.println().Feel free to inspect the whole list of code templates from Preferences -> Java -> Editor -> Templates. It's up to you to add your own code templates for your common programming tasks. One of my personal code templates is assigned to the keyword
logger. It declarates an Apache Commons Logging member on class level. The code template looks like this:private final Log logger = LogFactory.getLog(getClass());
${log:import(org.apache.commons.logging.Log)}
${logfactory:import(org.apache.commons.logging.LogFactory)}


1 comments:
"I am getting "Template has invalid variable identifiers" while setting this template? Where do I set the log and logfactory variables?"
Post a Comment