Coming Soon: Getting CFEclipse to do Component Insight
I thought I would post something here, just to remind myself of some things, about adding functions to CFEclipse and to update whoever is interested on progress.
I have been working on the CFMLComponentAssistant. What is that you may ask? Well, we have various "assistants" they basically return CompletionProposals, a proposal is saying that when you hit a certain key or type a certain word, you get a drop down of proposed completions to your code, basically what you would call auto-completion or tag insight.
The one I am working on, the ComponentAssistant, is triggered when you put a ".". It then looks at what you typed before, so if you have a statement like:
It goes and looks for a cfc named CMSManager and returns a list of functions that are available to you. It is a short step towards some CFC insight. of course, then myitem would be of some CFC type, and this is a problem because lets say:
So I am thinking of ways to get round this. Maybe a sort of cache that gets built (in XML or whatever) that has something like:
you would get proposals for a query object.
You get the idea.
Early days yet, but its all fun!
(doesn't help that Eclipse is being weird tonight)