NetBeans code templates - using current class' name

77 views Asked by At

NetBeans has code templates invoked by typing an abbreviation, and these can use special codes.

I'd like to have this template:

public class GraphTypeManager {
    // This would be created by the template
    private static final Logger LOG = Logger.getLogger(GraphTypeManager.class.getName());

However, I don't know how to make the template fill in the GraphTypeManager, i.e. the currently edited class.

Is there something not mentioned in the docs I could use?

0

There are 0 answers