Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Question about Comments and Whitespace

Please ask this kind of question on eclipse.tools.jdt newsgroup, this list
is only for development purposes...

Saying that, to answer the question on comments list,
org.eclipse.jdt.core.dom.CompilationUnit#getCommentList() should address
your need.
Please be clearer on what you mean by "retain some type of whitespace": is
it while visiting the AST tree, while writing it, parsing the compilation
unit, others...?
Is it in only in comments or all over the code?

Cordialement/Regards,

Frédéric




                                                                       
             "Kailey Joanette"                                         
             <kaileyjo@bigblue                                         
             bubble.com>                                                To
             Sent by:                  jdt-core-dev@xxxxxxxxxxx        
             jdt-core-dev-boun                                          cc
             ces@xxxxxxxxxxx                                           
                                                                   Subject
                                       [jdt-core-dev] Question about   
             04/03/2007 02:20          Comments and Whitespace         
             PM                                                        
                                                                       
                                                                       
             Please respond to                                         
             "Eclipse JDT Core                                         
             developers list."                                         
             <jdt-core-dev@ecl                                         
                 ipse.org>                                             
                                                                       
                                                                       




Is there any way to have comments including in the right order in the AST
tree?  I know I have this structure in compilationUnit that has all of the
comments but there is no indication of where it would go in the parsing of
the tree.

Also, is there any way to retain some type of whitespace?  In particular I
would like to keep line breaks around (unless I explicitly choose not to).

Kailey_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev




Back to the top