That old XML golden hammer again...
Hi Jeremy.
So what do you propose be the default for Collection? I have a source file
here that has 4 different concrete declarations for different Collection
variables, so whichever I chose as the default, I would have been wrong in 3
out of 4 cases (possibly 4!).
A nicer solution would be for IDEA's smart completion to offer classes and
interfaces which implement or extend the interface, so that "ArrayList"
would appear in a drop-down along with "LinkedList" and "List {...}" (and
any Lists I had implemented myself).
The IntelliJ guys mentioned recently that they thought of this a while back
but it was too slow, but they have since found a way to do it much quicker
so it may well reappear.
Sorry to rant, but I really disagree with hard-coding implicit relationships
in config files, whatever their suffix.
Cheers,
Dan
> -----Original Message-----
> From: Stell Smith, Jeremy (Thoughtworks)
> [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2002 15:28
> To: '[EMAIL PROTECTED]'
> Subject: [Eap-features] how about way to default new instances of
> interfaces
>
>
> I'm tired of having to type "ArrayList" after typing "List
> list = new "
>
> could we have a place (even an xml file) to configure the
> class we want to
> instantiate for a given abstract class/interface?
>
> java.util.List -> java.util.ArrayList
> java.util.Map -> java.util.HashMap
>
> etc...
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
>
***************************************************************************************
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-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features