Say I've got a class, Event, from which I want to extract an interface.
This is commonly because I've now got another type of event, so want to use
an interface and 2 implementations.
What I really want to do is call the interface Event, and rename my original
class (e.g. to EventImpl).
This would mean that all declarations etc. of Event would remain unchanged,
and only the instantiations of Event would have to be changed to EventImpl.

With Extract Interface, you cannot do this - you can only name the
interface.
I'd like to see it enhanced so that you have the option to give the
interface the name of the original class, and rename the class to something
else.

I recognise that you could do this in further steps of renaming.  However,
it's a long way round and would mean that you might change a client class in
one renaming, then change it back to its original state in a subsequent
renaming.  This is particularly a pain if you're using e.g. VSS, because you
then have to check out classes which will ultimately be unchanged.

All this would, I think, apply to both Extract Interface and Extract
Superclass.

Calum
CONFIDENTIALITY NOTICE: This message is confidential and for the use only of
the intended recipient. If you receive the message in error you are not
entitled to disseminate, copy or use the contents in any way. In such
circumstances please forward the message back to the sender or contact IT
Services at the group's parent company - Aspects Software Ltd, by telephone
on +44 (0) 131 225 9500.  WARNING: While Aspects Software Ltd and all its
subsidiaries take steps to prevent computer viruses from being transmitted
via electronic mail attachements we cannot guarentee that attachments do not
contain computer virus code. You are therefore strongly advised to undertake
anti virus checks prior to accessing the attachement to this electronic
mail. Neither Aspects Software Ltd nor any of its subsidiaries grants any
warrenties regarding performance use or quality of any attachment and
undertakes no liability for loss or damage howsoever caused. 

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

Reply via email to