-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HqlParser/Intellisense Helper
PostPosted: Fri Jan 13, 2006 2:33 pm 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 12:21 pm 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
Status -- I've got Intellisense working for the most common cases -- after typing the FROM keyword, and after typing a dot. Since our homebrew editor is just that, homebrew, I'll see if I can get the author of NHibernate Query Analyzer to work this in to his utility ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.