Skip to main content



      Home
Home » Language IDEs » AspectJ » automatic code insertion
automatic code insertion [message #32841] Mon, 12 April 2004 12:14 Go to next message
Eclipse UserFriend
Hi-
I need help for automatic code insertion using templates if possible or
otherwise.
I have a class that has suppose 8 methods and 2 constructors.
I want that a System.out is inserted just after the method/constructor
declaration..is there an automatic way to do this in Eclipse/AJDT for an
Existing Class?
Eclipse 3.0 M7 is what I have so let me know which AJDT Version is
compatible with this. After Code Insertion..I can compile as usual.
Re: automatic code insertion [message #32874 is a reply to message #32841] Mon, 12 April 2004 17:25 Go to previous message
Eclipse UserFriend
Originally posted by: newsserver_mails.bodden.de

Hi.

rohitsoftware wrote:
> I need help for automatic code insertion using templates if possible
> or otherwise.
I do not understand what that has to do with AJDT? Do you want to use AOP or
do you want to use "standard-OO" code insertion?

> I have a class that has suppose 8 methods and 2 constructors.
> I want that a System.out is inserted just after the method/constructor
> declaration..is there an automatic way to do this in Eclipse/AJDT for
> an Existing Class?
I assume you mean System.out.println(String). Sure you can do that - with an
"after" advice.

> Eclipse 3.0 M7 is what I have so let me know which AJDT Version is
> compatible with this. After Code Insertion..I can compile as usual.
There is no compatible AJDT build for M7. Version 1.1.4 works with M4 and
the current 1.1.7 dev seems to work with M8 (see earlier postings).

Eric


--
Eric Bodden
ICQ UIN: 12656220
Website: http://www.bodden.de
GPG: BB465582
Re: automatic code insertion [message #577287 is a reply to message #32841] Mon, 12 April 2004 17:25 Go to previous message
Eclipse UserFriend
Hi.

rohitsoftware wrote:
> I need help for automatic code insertion using templates if possible
> or otherwise.
I do not understand what that has to do with AJDT? Do you want to use AOP or
do you want to use "standard-OO" code insertion?

> I have a class that has suppose 8 methods and 2 constructors.
> I want that a System.out is inserted just after the method/constructor
> declaration..is there an automatic way to do this in Eclipse/AJDT for
> an Existing Class?
I assume you mean System.out.println(String). Sure you can do that - with an
"after" advice.

> Eclipse 3.0 M7 is what I have so let me know which AJDT Version is
> compatible with this. After Code Insertion..I can compile as usual.
There is no compatible AJDT build for M7. Version 1.1.4 works with M4 and
the current 1.1.7 dev seems to work with M8 (see earlier postings).

Eric


--
Eric Bodden
ICQ UIN: 12656220
Website: http://www.bodden.de
GPG: BB465582
Previous Topic:automatic code insertion
Next Topic:Re. the AJDT user guide
Goto Forum:
  


Current Time: Fri May 09 08:17:54 EDT 2025

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

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

Back to the top