Add Javadoc

General Discussion on RSyntaxTextArea.

Moderator: robert

Add Javadoc

Postby mr.thiagoo » Thu Oct 06, 2011 9:51 pm

First I want to congratulate you for the component that is very good. I'm currently implementing this component in a Java development framework and I would like to know how to include the JavaDoc of my own classes (framework) in autocompletion class.

Posts: 1
Joined: Thu Oct 06, 2011 9:25 pm

Re: Add Javadoc

Postby robert » Sat Oct 08, 2011 7:30 pm

I'm glad you find RSTA useful! As for adding your own Javadoc, the library only currently supports loading documentation from a source zip (or directory), not from Javadoc per-se (I haven't implemented a Javadoc HTML parser). Here's an example of loading doc from a source zip:

Code: Select all

// ...

JarInfo info = new JarInfo(new File("myLib.jar"));
info.setSourceLocation(new File(""));
JavaLanguageSupport jls = (JavaLanguageSupport)LanguageSupportFactory.getSupportFor(SyntaxConstants.SYNTAX_STYLE_JAVA);

Does that help?
User avatar
Posts: 852
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