You can already do this with eclipse. Both ASDT and FDT ship with a few standard templates. Just type systrace (or part of that) inside a method and then hit ctrl+space. It will add the trace statement for you.

Peter
www.peterjoel.com


----- Original Message ----- From: "Alias" <[EMAIL PROTECTED]>
To: "Open Source Flash Mailing List" <[email protected]>
Sent: Friday, August 19, 2005 3:49 PM
Subject: Re: [osflash] Actionscript pre-compile post processors


Hmm, that's a good point, but I'm not really looking to get into that
degree of complexity just to view logs. Also, it wouldn't just be for
managing traces, you could concievably use it for generating comments,
cleaning up code, etc. etc.

Cheers,
Alias

On 8/19/05, Ben Smeets <[EMAIL PROTECTED]> wrote:
Wouldn't making use of a generic 'LogManager' be a better idea?
Something in the likes of how as2lib.org manages it (as example of flash
usage).





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Martin Wood
Sent: vrijdag 19 augustus 2005 16:02
To: Open Source Flash Mailing List
Subject: Re: [osflash] Actionscript pre-compile post processors

Unfortunately no suggestions, all i can do is point to an existing
eclipse plugin for Java and say 'i want one of those'

I make heavy use of the Log4E plugin to generate logging statements and
declarations in Java code. So if anyone is working on a tool like this
(it would make a nice addition to ASDT as well) its worth a look.

http://log4e.jayefem.de/index.php/Main_Page

especially an analagous feature to 'replace System.outs' that replaces
trace or Flashout statements for whichever logging system is being used.

another one for the wish list.

:)

martin


Alias wrote:
> Hi guys,
>
> Just joined up today. I wanted to ask if anyone has started any kind
> of automated actionscript text processor projects, like for example, I

> often spend hours adding traces like this:
>
> class com.foo.Foo{
> public function Foo():Void{
>   trace("Foo:Foo()");
>   bar();
> }
>
> private function bar(){
>   trace("Foo:Foo.bar()");
> }
>
> It would be nice to run a script/macro/explise plugin/whatever to
> automatically add function order traces, automatic commenting, simple
> stuff like that.
>
> That would be really useful - has anyone got any recommendation?
>
> Cheers,
> Alias
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to