This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
${Foo}Event event = null; Object[] listeners = ${listenerList instanceof="javax.swing.event.EventListenerList"}.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ${Foo}Listener.class) { if (event == null) event = new ${Foo}Event(this); ((${Foo}Listener) listeners[i + 1]).${method}(event); } }