title: Comment Template variables in Eclipse
body: <p>I have a comment template in Eclipse (CDT) that I use for function calls which looks like:</p>
  
  <pre><code>//****************************************************************************
  //
  // Function: ${enclosing_method}
  //
  // Purpose:  
  //
  // Parameters:
  //
  //****************************************************************************
  </code></pre>
  
  <p>My problem is that the <code>${enclosing_method}</code> template variable doesn't work MOST of the time, but other times it does and I have yet to figure out why.  I've tried using the comment template inside of the function and outside (on top of) the function definition even within the same header file.  I prefer it to be on top and have seen it work in that position but again I don't know why.</p>
  
  <p>What prerequisites need to be met in order for the enclosing_method variable to place the name within the comment automagically?</p>
  
  <p>Thanks in advance for any insight you can provide.</p>