I'm trying to add some Intellisense to an HQL editor. As far as I know, there isn't one already available.
The two most useful kinds of dropdowns would be an entity dropdown and an entity property dropdown. I already have working code to populate these lists, and also have a UI completed to make the dropdowns work as expected, once they're shown. The difficulty is in knowing when to show them, and for the property dropdown, what the current type is to show properties for.
So, my request is for people familiar with NHibernate's HqlParser API, or willing to become familiar with it, to help me create a layer on top of it to parse HQL statements that may be incomplete/invalid, but enough can be parsed to determine the context of(appropriate dropdown for) a given character index. Then we can add this "Intellisense" parser to NHibernate's Contrib project, and it can be used by any HQL editor.
|