javadoc - Reading Java class documentation from code into a GUI -
my question today have gui interfaces program. have text area within gui display class documentation of specific components user selects.
example: user selects 'protocol' setting want show javadoc 'protocol'.
how go recognising correct javadoc , presenting within text area?
i suggest 3 possible approaches:
- as part of build, create javadoc html normal, , include in deployable, , have gui use embedded browser of kind (eg. webkit)
- study how it's been done other gui's, such eclipse's javadoc view, or using a project extends eclipse javadoc view
- use java source (javadoc) parsing library / tool, such qdox
example code qdox:
javadocbuilder builder = new javadocbuilder(); builder.addsource(new filereader("myfile.java"));
Comments
Post a Comment