开发者

Extending Groovy beans event handling to IEventNameListener interfaces

开发者 https://www.devze.com 2023-04-11 17:59 出处:网络
According to this mailing li开发者_如何学Cst thread, Groovy\'s event handling support doesn\'t work for those Eclipse event listener interfaces which are called IEventNameListener instead of EventName

According to this mailing li开发者_如何学Cst thread, Groovy's event handling support doesn't work for those Eclipse event listener interfaces which are called IEventNameListener instead of EventNameListener. Is there some way to extend it?


The event handling support for beans is implemented according to the bean specification and doesn't have extension points for you to use. You will have to go the slightly longer way and do for example:

hl.addEventNameListener({...} as IEventNameListener)

with {...} being your Closure you want to handle the event with.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号