title: Eclipse Custom Variable for Java Code Templates
body: <p>How do you add a new variable to be inserted into a Java code template. How do I add a variable to the list in Window->Preferences->Java->Code Style->Code Templates->Code->New Java Files->Edit->Insert Variable... ?</p>
  
  <p>Currently my new files get created with:</p>
  
  <pre><code>${filecomment}
  ${package_declaration}
  ${typecomment}
  ${type_declaration}
  </code></pre>
  
  <p>I'd like them to get created with something like:</p>
  
  <pre><code>${begin_filecomment}
  ${package_declaration}
  ${typecomment}
  ${type_declaration}
  ${end_filecomment}
  </code></pre>
  
  <p>where begin_filecomment and end_filecomment appear in the Insert Variable list.</p>