title: collapse parent and child java classes in eclipse
body: <p>I've inherited an abstract parent class with only a single child class, both in 
  separate files.</p>
  
  <p>They're big and ugly. And they're no-longer structured correctly. 
  I'm going to refactor them to be much nicer - but as part of this I'd
  first like to collapse them into a single class. I.e. to go from something like this:</p>
  
  <pre><code>public abstract class ParentClass implements SomeInterface {
  
     ParenClass(SomeOtherClass v) {
       aMember = v;
     }
  
     @NonNull final SomeOtherClass aMember;
  
     abstract void doSomething();
  
     // Several hundred lines of other functions and members.
  }
  
  public class ChildClass extends ParentClass {
  
      ChildClass(AnotherClass v2) {
         super(v2.getSomething());
         this.childMember = v2.somethingElse();
      }
  
      @NonNull final SomeOtherClass aMember;
  
      @Override void doSomething() {
        //...
      }
  
      // Several hundred lines of other functions and members
  }
  </code></pre>
  
  <p>To a merged version of both classes (Could actually be named like either
  of the original classes though...)</p>
  
  <pre><code>public class MergedParentAndChild implements SomeInterface {
  
     JustOneClass(AnotherClass v2) {
        this.aMember = v2.getSomething();
        this.childMember = v2.somethingElse();
     }
  
     void doSomething() {
        //...
     }
     // Lots of other functions etc.
  }
  </code></pre>
  
  <p>I've done this by hand using the "pull up" refactor on all members but it's time consuming as
  it gets constructors wrong and has issues with final members and abstract functions etc. </p>
  
  <p>Maybe eclipse probably has a quick way to do this directly in its lists of refactorings. I just can't seem to find it.</p>
  
  <p>Is there a quick and easy way to do this?</p>