Make Use of Eclipse Code Template
By admin on Aug 9, 2008 in Java, Programming, side note
By defining your own Eclipse code template, you can greatly simplify your daily programming work
E.g. go to Windows->Preferences->Java->Editor->Templates, and add a template called “log” with the following pattern
private static final Log log =
LogFactory.getLog( ${enclosing_type}.class );
Then in our editor, just type “log” and then press “Ctrl-Space”, then statement will be generated automatically.
private static final Log log = LogFactory.getLog(MyClass.class);
Sorry, comments for this entry are closed at this time.