title: Auto-generate stub methods that throw in eclipse
body: <p>Similar to <a href="https://stackoverflow.com/questions/46003/how-to-change-generate-method-stub-to-throw-notimplementedexception-in-vs">How to change &quot;Generate Method Stub&quot; to throw NotImplementedException in VS?</a>, but for Eclipse instead of Visual Studio</p>
  
  <p>Both NetBeans and Eclipse have a function that, if you declare a Java class to implement an interface but omit one or more methods, will automatically generate a stub method for you.</p>
  
  <p>The difference is that the Eclipse version will do nothing, and return zero or null, e.g.</p>
  
  <pre><code>public String munge(String foo) {
      // TODO Auto-generated method stub
      return null;
  }
  </code></pre>
  
  <p>The NetBeans version will throw an exception instead:</p>
  
  <pre><code>public String munge(String foo) {
      throw new UnsupportedOperationException("Not supported yet.");
  }
  </code></pre>
  
  <p>which I prefer.</p>
  
  <p>Is it possible to configure Eclipse to do this?</p>