I like it :)
+1 if it is in the javabeans spec
+.5 if it's not

btw it occured to me that there could be some mechanism like the live
templates to insert template methods, currently we have getter, setter and
constructor. May be for IDEA4?

-- dimiter

"Willem Salembier" <[EMAIL PROTECTED]> wrote in message
news:ah99r4$lu3$[EMAIL PROTECTED]...
> Hi,
>
> When class fields are a subclass of java.util.Collection,
>
> public class Foo {
>     Collection fValues;
>
> it would be nice that the generate setter (Alt-Insert) could also generate
>
>     public addValue(|Object| |obj|) {        // |Object| has focus to
input
> the objects type
>                                                              // this can
go
> automatically when we finally can use generics ;-)
>         fValues.add(|obj|);
>     }
>
>     public removeValue(|Object| |obj|) {
>         fValues.remove(|obj|);
>     }
>
> instead of
>
>     public setValues(Collection values) {
>         fValues = values;
>     }
>
> What do you think?
>
> Regards,
>
> Willem
>
>


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

Reply via email to