Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » CompilatioUnit.getCommentList(); - Where are the comments???
CompilatioUnit.getCommentList(); - Where are the comments??? [message #118120] Tue, 13 November 2007 13:36
Eclipse UserFriend
Originally posted by:

I'm trying to get all comments (LineComments, BlockComments and
DocComments) appearing in a class.

It seems to be the only way to use 'CompilationUnit.getCommentList()'.
With this I get all comments but the LineComments and BlockComments are
without any content (all LineComments look like this '//'and all
BlockComments like this '/* */').

Checking the length using 'LineComment.getLength' returns numbers that let
suppose, there must be something. But 'LineComment.toString().length'
results in numbers that are much too small.

So has anyone an idea how I can get the contents of the comments?

Previous Topic:IWAT4039E The Test Execution Harness reported the following problems:Failed to retrieve the context
Next Topic:TPTP problems on Linux
Goto Forum:

Current Time: Mon Nov 30 11:43:04 GMT 2015

Powered by FUDForum. Page generated in 0.01799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software