> > 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

Reply via email to