can't you already do this using Code -> Delegate Methods?
-----Original Message-----
From: Guillaume Pothier [mailto:[EMAIL PROTECTED]]
Sent: 20 July 2002 02:42
To: [EMAIL PROTECTED]
Subject: [Eap-features] Re: generate adder/remover
Very, very good idea!
"Willem Salembier" <[EMAIL PROTECTED]> a �crit dans le 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
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features