This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Code templates currently support ${cursor} for setting the location of the cursor after inserting a code template. Suggest adding ${class} for name of current class, ${fqclass} for fully qualified class name and ${method} for name of current method. This would be of particular use when creating a code template for logging statements. For eaxmple, the code template log.entering(\"${class}\", \"${method}\"); would save a lot of typing.
As per documentation at http://www.netbeans.org/source/browse/*checkout*/java/helpset/javahelp/org/netbeans/modules/java/helpset/docs/editing/editor_template_syntax.html?rev=1.2, this is already provided by the ide. Is the documentation wrong? (In which case, a doc bug should be filed and issue 124375 closed as not supported). Or is the feature requested in this issue is already present in the ide? (In which case this bug should be marked fixed).
Tried in v6 on Linux with JDK 1.6 and the following code template: log.entering("${class}", "${method}"); incorrectly expands to: log.entering("class", "method"); in the IDE. *** This issue has been marked as a duplicate of 124375 ***