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.

5 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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?

0
Comment actions Permalink

As for now, it is the user supplying the dynamic elements once. Alternatively some form of external metadata could be supported.

0
Comment actions Permalink

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

0
Comment actions Permalink

There is a quickfix for adding these. Once you add, they appear in rewspective tool window.

0

Please sign in to leave a comment.