Code completion for builders
So. Lets say I'm writing a builder. I want people using the builder to have some level of code completion. From reading the docs, it looks like there's some for the swing builder? Is there some kind of config file I could provide to Idea to also provide some code completion to my custom builder?
Thanks in advance.
请先登录再写评论。
In JetGroovy 1.5 there is a feature called 'dynamic methods and properties': when we cannot resolve certain symbol we offer to add psuedo variable/method to the respective class to be used for completion.
I believe this should work for builders as well.
So, I'm not clear on the feature. Is JG guessing, or is this some form of metadata that can be supplied to help out?
As for now, it is the user supplying the dynamic elements once. Alternatively some form of external metadata could be supported.
Hi Eugene,
Where can I find the dynamic methods and properties thing? I know there used to be a sidebar button for it, but it's missing, and it's also not listed in Window -> Tool Windows...
Erik
There is a quickfix for adding these. Once you add, they appear in rewspective tool window.