[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-ui-dev] Anonymous inner class creation...
|
I noticed that if you use code completion in a call to super() in a
constructor, you're given in the option to create anonymous inner classes
that extend a supertype. This is very cool, and it would be really cool if
we could access this functionality in other places as well.
For example, I'd love to type
ActionListener l = new ActionListener
followed by control-space and see
ActionListener (anonymous inner class)
listed as an option. If selected, it should expand to
ActionListener l = new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
};
(In other words, stub abstract methods automatically.).
If I had time to work on this one, I'd tinker -- perhaps someone else knows
that functionality well?
TIA,
-- Scott
==============================================================
Scott Stanchfield scott@xxxxxxxxxxxx http://javadude.com
Lead author of "Effective VisualAge for Java, Version 3"
http://javadude.com/evaj
VisualAge for Java Tips and Tricks http://javadude.com/vaj
AWT & Swing FAQ Manager, jGuru.com
Visit for Java Enlightenment! http://www.jguru.com
==============================================================