We could really use this refactoring.

-Mark Chandler

Valentin Kipiatkov wrote:

> Yes, we already planned this feature. Most likely, we will implement it for
> Ariadna (the next version after Pandore).
> In my view, it could work as follows:
>
> 1. Select "Code | Delegate Methods...".
> 2. It brings the list of all instance fields (and getter methods too?).
> Select one.
> 3. It brings the list of all accessible methods of the instance that is
> holded in the choosen field.
> 4. Selected methods are generated as delegation through the selected field.
>
> Best regards,
> Valentin Kipiatkov
> -----------------------------------------------------------
>  IntelliJ Software, http://www.intellij.com/
>  "Develop with pleasure"
> -----------------------------------------------------------
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 17, 2001 8:01 AM
> Subject: [Eap-list] support for creating a class using composition
>
> > hey all,
> >
> > I'm not sure if this already exists - if it does, just tell me where to
> > look for it...
> >
> > what I'm after is something similar to generate getter/setters, but that
> > would delegate to another class to provide the implementation.  For
> > instance:
> >
> > public class A
> > {
> >   private int foo;
> >   public void setFoo(int foo) { this.foo = foo; }
> >   public int getFoo() { return foo; }
> > }
> >
> > public class B
> > {
> >   public A a = new A();
> >   public void setFoo(int foo) { a.setFoo(a); }
> >   public int getFoo() { return a.getFoo(); }
> > }
> >
> > so I suppose I want something like "expose methods from member"... does
> > this exist?  if not, does anyone think its worthwhile?
> >
> > cheesr
> > dim
> >
> >
> > _______________________________________________
> > Eap-list mailing list
> > [EMAIL PROTECTED]
> > http://www.intellij.com/mailman/listinfo/eap-list
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list


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

Reply via email to