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.







-- 
View this message in context: 
http://n2.nabble.com/generator-and-generic-accesses-to-qx-ui-tp4088148p4088148.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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

Reply via email to