Question about ExtractSuperClassProcessor?

Hello,

I used the operation ExtractSuperClass programatically by instanciating the class ExtractSuperClassProcessor, but it does always the inverse. That means that when I like to extract a superClass A from a class B, I get A extends B insteadOf B extends A. The operation behaves as same as its use from the menu refactoring in the case of choice of the option "Rename original class and use superClass where posiible". Is there one who know what is wrong with this operation?

Informations: the parameter MemberInfo contains the method that i like to pull up to the superClass.

1 comment
Comment actions Permalink

Hi,

I believe ExtractSuperClassUtil.extractSuperClass() is what you need.

Cheers,
Kirill

0

Please sign in to leave a comment.