| JavaDoc parser [message #512994] |
Mon, 08 February 2010 09:14  |
Keya Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Hi,
I want to obtain the JavaScript documentation associated with every element/node in the given JS File.
I have tried ASTParser and couple of mode available with WebTools but apparently I get just a chink of JavaScipt in the whole JS file. There is no further information about it's mapping to the corresponding element.
Please let me know if the feature is supported in WebTools and if so what is the correct way to obtain the required information.
Thanks & Regards,
Keya
|
|
|
|
|
|
| Re: JavaDoc parser [message #513394 is a reply to message #513203] |
Tue, 09 February 2010 14:16   |
 |
Nitin Dahyabhai Messages: 1857 Registered: July 2009 |
Senior Member |
|
|
On 2/9/2010 6:14 AM, Keya wrote:
> Hi Nitin,
>
> The parser you have mentioned is fine and works for the JS file sitting
> in a project.
> I have an additional requirement to parse a non-workspace file for the
> JavaDoc. These are basically the user libraries that I can attach with
> the JS Project. Can you please tell me what's the correct way of
> obtaining the 'org.eclipse.wst.jsdt.core.IJavaScriptUnit' instance from
> 'org.eclipse.wst.jsdt.internal.compiler.batch.CompilationUni t'?
The closest thing we have for that kind of task is
org.eclipse.wst.jsdt.internal.core.util.CodeSnippetParsingUt il#parseCompilationUnit(char[],
Map, boolean), which is very much internal. You can, however, then use
a org.eclipse.wst.jsdt.core.ast.ASTVisitor to walk the AST for comments.
It's not nearly as easy to use, but then arbitrary standalone files
aren't a use case in which we're heavily vested.
--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
---
Nitin Dahyabhai
Eclipse WTP, IBM
|
|
|
|
|
| Re: JavaDoc parser [message #514418 is a reply to message #513740] |
Mon, 15 February 2010 04:29  |
Keya Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Hi Nitin,
I am very sorry for a late response.
For the problem that I mentioned with Hover information, I had took the Classic Eclipse SDK 3.5 from the eclipse site and installed WTP plug-ins using the Update Manager.
I create a JavaScript project and add a JS file to it. Basic, ECMA APIs like Document etc are not showing the JavaDoc attached. I get JavaDoc information on functions only like alert("") etc.
Is there something that I am missing in my installation?
Thanks & Regards,
Keya
|
|
|
Powered by
FUDForum. Page generated in 0.01740 seconds