Return on AutoComplete

General Discussion on RSyntaxTextArea.

Moderator: robert

Return on AutoComplete

Postby Arild » Fri Aug 31, 2012 2:42 pm

I've just managed to get out all vital information (functions and returntypes, and comments (javadoc) from the openjdk-6 sources.
They are now all displaying using classes in package org.fife.ui.autocomplete.
I just wonder about how to return the function with their paramaters when user selects a function (or field) on the AutoComplete Listbox?
I mean... i don't want the function (as described in Listbox (with it's returntype at the end) but the function in how it is coded with,
hopefully with the cursor placed at the first in-parameter?

It's maybe easyer than i think?

Thanks in advance.
Arild
Arild
 

Re: Return on AutoComplete

Postby robert » Thu Sep 06, 2012 1:23 pm

You should take a look at ParameterizedCompletions, they do what you want. For an example implementation of Java code completion, check out the JavaLanguageSupport in the RSTALanguageSupport library (currently no downloadable package, you must grab it from the SVN repository). You can also read about it in the blog here.
User avatar
robert
 
Posts: 788
Joined: Sat May 10, 2008 5:16 pm


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron