I would like to be able to create a method from an example use of the
(non-existant) method.

For example:

1. I have class Foo, with no methods.
2. While typing in a class using foo, I try to use a method that I will now
want to create on it, called 'bonson'
E.g.:

     Foo foo = new Foo();
     String blah = "x";
     String[] result = foo.bonson(blah);

3. I then want to right-click on the (highlighted) 'bonson' method and
click 'Generate New Method'.
4. IntelliJ would then generate, in class Foo:

     public String[]
     bonson(String blah)
     {
          |
     }

4b. If Foo were an interface, the declaration would need to go in Foo, and
a definition created in each direct subclass.

Graham Lea

--
Software Engineer
Forge Research Pty Ltd
Suite 116, Bay 9, Locomotive Workshop
Australian Technology Park, Cornwallis Street
Eveleigh NSW 1430 Australia
Phone: +61 2 9209 4152   Fax: +61 2 9209 4172
www.forge.com.au

----------------------------------------------------------------------
This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender immediately.  Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).
----------------------------------------------------------------------


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

Reply via email to