> I have a class which has some methods and some fields that are used by
> them and I want to extract them all into a class that I am going to
> delegate functionality to.

> I'm also going to delegate the same functionality for classes in other
> parts of the inheritance heirarchy, that's why the refactoring.

I made a similar request not so long ago. I definitely think it would be 
useful. What you don't want is IDEA to make the class "extend" the one 
you extracted, which is what Extract superclass would do, and you'd 
probably also like the original class to implement the same (or some) 
methods of the delegated class, introduce a new field of the new class 
type, and have these methods call the field's implementations of the 
methods. 

Hmm � will IDEA add "macro scripting" for refactorings? The above seems 
like a "super-refactoring" that is made of more simple refactorings.

Marc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W<A> ~~~~~
(o) Wangjammer5 (Marc Palmer) 
( ) Wangjammer7 

www.wangjammers.org = Java Consultants (Web|Smartcards|Crypto)



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to