Hi Benoit,
> if (level>0)
> {
> new qx.ui[packageNames[0]].{widgetName}(...)
> }
> else new qx.ui[packageNames[1]].{widgetName}(...)
>
>
> But as I expected, the generator can't recognise the kind of
> declaration...
Meaning what? Do you get errors at compile time, or later at run time in
the browser? You should be more specific about the error case.
>
> How can I force it the inclusion the targeted classes ? I tried to use the
> "include" config key like it:
>
> "include" : ["qx.ui.toolbar.*","qx.ui.menu.*"]
>
> but it throws an error "No such file or directory" [Errno 2] as if I sould
> specify path-like strings...
No, the syntax is ok. It's also the right intuition, with this setting you
can draw the set of classes into your application. - In which job did you
specify this key? It should be "source-script" and "build-script", to have
them in both source and build versions. Did you mix it up with the
top-level "include" key?! (s. [1] vs. [2])
> Also notice that this factory class is called
> as a library in my main application, so maybe the "include" directive
> isn't
> located at the good place ?
You're right. Using the "include" key needs to be done in the config file
of main application. The alternative is what Matt suggested, using #use()
compiler hints in one of the library classes.
T.
[1]
http://qooxdoo.org/documentation/0.8/generator_config_ref#include_top-level
[2] http://qooxdoo.org/documentation/0.8/generator_config_ref#include
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel