> A SWC usually doesn’t contain its source code.

- Example of what it "decompiles" when it hasn't got the source code:

public class mx.core.ByteArrayAsset extends flash.utils.ByteArray
  implements mx.core.IFlexAsset
{
  native public function ByteArrayAsset():*;

  static native mx_internal const VERSION:String = "3.0.0.0";
  static native private const mx_internal:* = 
"http://www.adobe.com/2006/flex/mx/internal";;
}

> I would assume IJ also has some click-to-open capability.  Can you specify
> more than one folder or does it have some smarter lookup algorithm?

Yes you can.

I could be wrong but my guess is it scans all the lib (the lib could be one SWC 
or a folder containing SWCs + sources) children's folders for the sources and 
maybe tries to match what it has been able to "decompile", while debugging, it 
uses the FDB commands to know where it is.

Frédéric THOMAS

> From: aha...@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FalconJX] FlexJS as to js work
> Date: Tue, 2 Jun 2015 23:11:46 +0000
> 
> 
> 
> On 6/2/15, 2:59 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> 
> >>Anyway, do you happen to know how IJ associates source with SWCs for
> >> debugging?  FB would rather we put #1 and #3 in the same source folder,
> >> but that makes describing what gets cross-compiled to JS more difficult.
> >> We could make COMPJSC smarter and ignore files with some directive in it
> >> so folks don’t need to keep adding to a list of files when adding new
> >> files.
> >
> >I would be happy to anwser but I'm not sure I understood the question.
> >If you add a SDK, SWC or a folder with SWCs and sources, it will scan and
> >detect swc and sources, for example, for the FlexJS folder imported as a
> >lib, it detects AS and ASJS for each swc, you can manualy add some source
> >folders for any of the SWCs.
> >
> >When it comes to debug, I guess it asks FDB for the source file, it the
> >file is not referenced, it will show a native representation where you
> >can still associate sources.
> >
> >Is that what you want to know ?
> 
> A SWC usually doesn’t contain its source code.  But for many 3rd party
> SWCs and for FlexJS swcs, the source code is available as part of the
> download.
> 
> In Flash Builder, with only the library-path pointing to the SWC and no
> other reference to the source files other than the debugfile opcodes in
> the library.swf, when I am in the editor, I can command-click or
> control-click on, for example:
> 
>       <js:TextButton />
> 
> And FB will try to open an editor with the source for that file.  FB is
> hard-coded to know how to find the sources for the SWCs in the sdks it
> ships with, but for everything else it asks you to supply a
> source-attachment for the SWC, which you supply via Project/Properties.
> The problem is, for FlexJS, you can only specify the src/as or src/asjs
> folders so sometimes click-to-open doesn’t work.
> 
> I would assume IJ also has some click-to-open capability.  Can you specify
> more than one folder or does it have some smarter lookup algorithm?
> 
> Thanks,
> -Alex           
> 
                                          

Reply via email to