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.
It would be very useful to have enclosing info as template variables. By enclosing I mean the name of the package/class/method where the code template is created. Like what is available in Eclipse: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2FgettingStarted%2Fqs-EditorTemplates.htm See ${enclosing_type} which gives the name of the class so you can create a template like this: private static final Logger LOGGER = LoggerFactory.get(${enclosing_type}.class); which will be expanded with the class name.
Reassigned for further evaluation.
Looks like a reasonable enhancement.