3

I just started using the NetBeans IDE and in poking around i have seen ${some code here} (e.g. ${user} or ${package}), especially in templates, seemingly as a manner of pulling information from another source.

I do not know what the terminology is for these, the closest I can find are code hints or code templates but those do not seem to be the same as these. Because I do not know what to call them, I do not know how to find more information on them. Specifically I want a list of all of these "shortcodes" supported by or built into the NetBeans IDE and what they "point" to.

2 Answers2

2

Credit for this answer goes to WillShackleford. He posted the link in a comment which allowed me to get all the information I was looking for.

They are called template variables. They are part of the implementation of the FreeMarker Template Language, specifically they are Interpolations, in the NetBeans IDE.

Information about them can be found at:
http://wiki.netbeans.org/FaqTemplateVariables
http://freemarker.org/docs/dgui_template_valueinsertion.html

General information regarding the FreeMarker Template Language and its use in the NetBeans IDE can also be found at the above links.

-2

The dollar sign is related to the anonymous inner class. You can check this answer

Community
  • 1
  • 1
Bruno Caceiro
  • 7,035
  • 1
  • 26
  • 45
  • 2
    Not in this context, they are (I believe) template marks. Unless you're going to expand on the links, you should either mark the question as a duplicate or leave it as comment, otherwise you simply riding the back of other peoples success/hard work ;) – MadProgrammer Sep 11 '15 at 23:55