Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Is there a way to add a comment using AST code generation?
Is there a way to add a comment using AST code generation? [message #19111] Sat, 10 May 2003 16:41 Go to next message
Eclipse UserFriend
Originally posted by: wgyun.hotmail.com

Hi there,
I'm using AST to automatically generate my code from scratch. I have
generated the code I wanted successfully, but there seems no way to add a
comment before a statement like "\\ To Do: modify the code below". The
"setLeadingComment" method of a statement is deprecated in 2.1, so I'm
wondering if there is a way around? Couldn't add a useful comment seems odd.
Can anyone give me some suggestions? Thanks in advance!
Re: Is there a way to add a comment using AST code generation? [message #19556 is a reply to message #19111] Mon, 12 May 2003 08:19 Go to previous message
Eclipse UserFriend
Originally posted by: tom.eicher.gmx.ch.nodomain

AFAIK, comment support other than javadoc is in the plan for 3.0. See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=29178
-tom

"Cindy Wen" <wgyun@hotmail.com> wrote in message
news:b9j9ap$71u$1@rogue.oti.com...
> Hi there,
> I'm using AST to automatically generate my code from scratch. I have
> generated the code I wanted successfully, but there seems no way to add a
> comment before a statement like "\\ To Do: modify the code below". The
> "setLeadingComment" method of a statement is deprecated in 2.1, so I'm
> wondering if there is a way around? Couldn't add a useful comment seems
odd.
> Can anyone give me some suggestions? Thanks in advance!
>
>
Previous Topic:jsp support for oc4j
Next Topic:Q: resolve package name to IPackageFragment?
Goto Forum:
  


Current Time: Sat Dec 21 16:38:42 GMT 2024

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

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

Back to the top