I see. This is another refactoring. It seems to be something like "Replace
Inheritance with Delagation". It's not supported yet, but we plan to
implement it in some near future.

Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
 IntelliJ Software, http://www.intellij.com/
 "Develop with pleasure"
-----------------------------------------------------------

----- Original Message -----
From: "Wangjammer5" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 3:29 PM
Subject: Re: [Eap-list] Extract interface... issue


>
> > > So, a new option:
> > >
> > > [ ] Make this class/interface extend/implement this extracted
interface
> > >
> > > I would have thought that by default it should be "off", but maybe
that's
> > > just me!
>
> > There are entries at the top of the list of members to be extracted for
> all
> > interfaces that your interface extends. By selecting them you choose to
> > "extract" these extends too. Does it work for you?
>
> No. I think you misunderstood my problem slightly.
>
> Before Extract interface:
>
> public interface MyInterface
> {
>  ...
> }
>
> After Extract interface to a new i/f called "ExtractedInterface":
>
> public interface MyInterface extends ExtractedInterface
> {
>  ...
> }
>
> ...this is not always what you want. I was creating a NEW interface from
> methods in the source interface, but there was no "is a" relationship
> between the two.
>
> i.e. my desired result was just to take methods out of the interface into
> a new one, and not change the "extends" of the source interface at all.
>
> I am using aggregation in the interfaces, instead of inheritance. i.e. I
> also added a getExtractedInterface() method to the source interface.
>
> Cheers
>
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list


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

Reply via email to