Autocompleting Text in an HTML file
Hi,
I've recently started working on the Wicket IDEA plugin and I'm trying to add an autocompletion feature. When the user presses the appropriate keystroke, I'd like to get all of the Wicket ids (eg: ]]>) from the HTML file, assuming the user is currently editing the Java file, and popup the list of available IDs in a completion panel.
I've looked at some of the plugins that ship with the dev kit, and I'm pretty stumped as to how to start this. The HelloWorld tutorial isn't much help. Any suggestions would be appreciated.
-Nick
Please sign in to leave a comment.
Check out this thread and see if it helps you
http://www.intellij.net/forums/thread.jspa?messageID=4981058
Thanks, that got me going in what I think is the right direction. The problem I'm running into now is getting the list of autocompletion tokens from the Java file. Any suggestions there?
Please explain what items you need to add to the completion list. Are you adding completions for HTML or Java files?
Got it working. You can see the end result here:
http://svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-idea-plugin/src/com/holmbech/wicketassistant/WicketJavaIdCompletionData.java?view=markup