title: Seeking useful Eclipse Java code templates
body: <p>You can create various Java code templates in Eclipse via</p>
  
  <p><em>Window > Preferences > Java > Editor > Templates</em></p>
  
  <p>e.g.</p>
  
  <p><code>sysout</code> is expanded to:</p>
  
  <pre><code>System.out.println(${word_selection}${});${cursor}
  </code></pre>
  
  <p>You can activate this by typing <code>sysout</code> followed by <code>CTRL+SPACE</code></p>
  
  <p>What useful Java code templates do you currently use? Include the name and description of it and why it's awesome.</p>
  
  <p>I am looking for an original/novel use of a template rather than a built-in existing feature.</p>
  
  <ul>
  <li>Create Log4J logger</li>
  <li>Get swt color from display</li>
  <li>Syncexec - Eclipse Framework</li>
  <li>Singleton Pattern/Enum Singleton Generation</li>
  <li>Readfile</li>
  <li>Const</li>
  <li>Traceout</li>
  <li>Format String</li>
  <li>Comment Code Review</li>
  <li>String format</li>
  <li>Try Finally Lock</li>
  <li>Message Format i18n and log</li>
  <li>Equalsbuilder</li>
  <li>Hashcodebuilder</li>
  <li>Spring Object Injection</li>
  <li>Create FileOutputStream</li>
  </ul>