[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-dev] Code template advanced use
|
Hi. I've got a simple problem with eclipse code formatter, and no solution.
the problem :
Given a class 'Computer'
With a method :
public Float compute(String param1,Object param2) {
}
I would like to have a code template (CTRL+ESPACE magic) that gives
public Float compute(String param1,Object param2) {
Float result = null;
boolean trace = log.isDebugEnabled();
if (trace)
log.debug("BEGIN - Computer.compute(param1="+param1+",param2="+param2);
if (trace)
log.debug("END - Computer.compute()");
return result;
}
I have already done a template, but i can't find a solution for the
iteration on the method parameters.
Can someone help ?
Thanks VERY VERY much
Here is my eclipse template :
boolean trace = log.isDebugEnabled();
if (trace)
log.debug("BEGIN: ${enclosing_type}.${enclosing_method}");
if (trace)
log.debug("END : ${enclosing_type}.${enclosing_method}");
--
View this message in context: http://www.nabble.com/Code-template-advanced-use-tp16467365p16467365.html
Sent from the Eclipse JDT - General mailing list archive at Nabble.com.