X

Geertjan's Blog

  • September 12, 2010

Lookups.forPath Code Completion (Part 2)

Geertjan Wielenga
Product Manager
Some progress on my layer code completer, i.e., now the code completion appears correctly between the quotation marks (and only if "forPath" is the method):

Following Tor's advice, I looked in the Ruby module, but I still find the SQLCompletionProvider by Andrei Badea more relevant to this scenario. It's proved pretty helpful so far.

Next step is to detect when a "/" is typed in the path, at which point the code completion box will show the children of the previously selected folder. E.g., when "Actions" is typed, followed by "/", then the children of the "Actions" folder will appear when code completion is called up right after the "/".

After that, will make it more flexible, so that more than "forPath" is supported, including via the Options window so that the user will be able to apply this completion to methods of their choice.


Join the discussion

Comments ( 1 )
  • Eduardo Costa Sunday, September 12, 2010

    That's very useful. Is there any chance of making it so generic that it can autocomplete all kinds of strings? Examples:

    1. JSF navigation in action methods

    2. Spring ApplicationContext.getBean

    3. JPA queries and named queries

    4. JDBC SQL statements

    etc etc

    Of course other teams will contribute on their own areas. Maybe an "string completion provider" or something?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.