Hi Marc. Seems to me you're trying to do two things at once:
1. create a new interface 2. move (static) fields from one interface to another If you just create the new interface as normal and use the Move Field refactoring on the statics, everything will work just as you expect, and all usages of the constants will be changed to refer to the new interface. Extract Interface should always cause the class or interface it was extracted from to implement/extend it IMO. Cheers, Dan > -----Original Message----- > From: Marc Palmer [mailto:[EMAIL PROTECTED]] > Sent: 16 December 2001 16:02 > To: [EMAIL PROTECTED] > Subject: [Eap-list] Extract interface... issue > > > > Hi, > > Just using Extract Interface properly for the same time. I > was surprised > that it changed the interface I extracted from, so that it > extended the > new interfaces I extracted from it. > > I think this should be optional. > > I was extracting constants (public static final fields) into separate > interfaces representing the enums the constants relate to. I ended up > with a interface that implemented these enum interfaces I > produced, which > was not what was expected. > > 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! > > Cheers > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > *************************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] immediately. This footnote also confirms that this email message has been swept for the presence of computer viruses. *************************************************************************************** _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
