title: Is there a shortcut in Eclipse for generating code for decorators?
body: <p>I was wondering if there was some functionality for generating the skeletons of a decorator from an interface similar to <code>Generate Setters and Getters</code>. I would like to create a class from an interface that took an instance of that interface and implemented every method as calling that same method with those same parameters on the instance. I have an ugly class from a library that I would like to decorate but it has ~50 methods and I only want to change the functionality of one of them and would like to save some typing. Is there anything like this?</p>
  
  <p>Example, given the interface:</p>
  
  <pre><code> interface FooBar{
        void foo( Object o );
        Object bar();
   }
  </code></pre>
  
  <p>produce something like the class:</p>
  
  <pre><code> class FooBarDecorator implements FooBar{
        private final FooBar fubee;
  
        FooBarDecorator( final FooBar fb ){
             this.fubee = fb;
        }
  
        public void foo( Object o ){
             this.fubee.foo( o );
        }
  
        public Object bar(){
             return this.fubee.bar();
        }
   }
  </code></pre>