开发者

Extending Groovy beans event handling to IEventNameListener interfaces

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜