Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: saorf.de.ibm.com

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?

THANKS!!!
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: Fri Apr 26 00:22:54 GMT 2024

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

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

Back to the top