[Flashcoders] How to expand import * statements?

2008-03-26 Thread Pasha
Thanks, guys, I stuck on FlasDevelop 2.0 and just misssed the new version -
FD 3.0.
However, despite new version is a great product (love it) it seems do not
have a batch mode to convert * imports for a set of classes or the whole
project.

But actually, I think it is not so important for me anymore, so don't
bother :)

Pasha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to expand import * statements?

2008-03-24 Thread Merrill, Jason
FWIW, (just noticed you said AS 2.0... the following only works in AS3
in Flex2/3 ) in Flexbuilder if  you type in  a dummy var statement:

private var b:MyClassIAmUsing (where the class name auto-completes) it
will automatically add the import statement if you haven't already. I
use this technique a lot to ease my laziness - saves me from figuring
out the exact path. If you need to, after the class import statement is
inserted , you can delete the var statement.



Jason Merrill
Bank of America  
GTO and Risk LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog  subscribe.




 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to expand import * statements?

2008-03-24 Thread Andy Herrman
FlashDevelop does that for you in AS2 (and I think AS3, I just haven't
gotten to play with that yet).  I've pretty much stopped writing
imports manually. :)

  -Andy

On Mon, Mar 24, 2008 at 10:21 AM, Merrill, Jason
[EMAIL PROTECTED] wrote:
 FWIW, (just noticed you said AS 2.0... the following only works in AS3
  in Flex2/3 ) in Flexbuilder if  you type in  a dummy var statement:

  private var b:MyClassIAmUsing (where the class name auto-completes) it
  will automatically add the import statement if you haven't already. I
  use this technique a lot to ease my laziness - saves me from figuring
  out the exact path. If you need to, after the class import statement is
  inserted , you can delete the var statement.



  Jason Merrill
  Bank of America
  GTO and Risk LLD Solutions Design  Development
  eTools  Multimedia

  Bank of America Flash Platform Developer Community


  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal  GTO Innovative Learning Blog  subscribe.







  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to expand import * statements?

2008-03-24 Thread Steven Sacks
Instead of writing var myVar:WhateverClass in FlashDevelop, you can just 
say new WhateverClass and it will autocomplete it for you.  Less to 
type, less to erase.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] How to expand import * statements?

2008-03-23 Thread Pasha
Hey!

I've just found out that MTASC compiles much faster if used classes are
imported explicitly.
That is
import com.togethersoft.util.Time
import com.togethersoft.util.Format

is much faster than

import com.togethersoft.util.*;

Provided there are many classes in com.togethersoft.util package.
Don't ask, I don't know why.

Because I'm a lazy programmer I always used * notation in my sources.
So now I have a lot of classes with * imports.
And because I want my code to compile fast, I wish to substitute * imports
to fully qualified class name imports.

Do you know any tool to help me to convert import statements in all the
sources?
This is Action script 2.0.

The only way I could think about is to use FDT Eclipse plugin.
FDT is able to detect classes used by the given one and add fully qualified
class name imports.
Unfortunately it does not support a batch mode. So I have to open each class
in the editor to convert imports.
And there are around 500 classes in the project.

Any ideas?

Pasha.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders