You need to add the following to the top of your file
/*
#use(qx.ui.toolbar.*)
#use(qx.ui.menu.*)
*/
I am not sure it if will pick up the classes correctly based on the
wildchar, worth a shot. If it doesn't work you can use the same syntax
but just list each class.
HTH,
Matt
benco wrote:
> Hello,
>
> I'm currently working on a toolbar factory class by passing (using a
> definition map and some static functions).
>
> I noticed that the qx.ui.toolbar and qx.ui.menu packages shares some common
> widget names and I tried to simplify my code by adding some genericity like
> it:
>
> var packageNames = ['menu','toolbar'];
>
> ...
>
> 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...
>
> 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...
>
>
> What is the correct syntax ? 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 ?
>
>
> Thanks in advance for your help,
>
> Best,
>
> BenoƮt.
>
>
>
>
>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel