I have this directory structure (with the default stuff removed) └── qssite ├── ui │ ├── STaskBarButtons.js │ ├── STaskBar.js │ ├── STaskButton.js │ ├── SToolBar.js │ ├── SUserActions.js │ ├── SWindow.js │ └── window │ └── SManager.js └── util └── BusHelper.js
I am in the process of refactoring so it has some inconsistency for now. The util.BusHelper is just a simple utility function to dispatch messages to the message bus. It has only one function and when I try to call it from the qssite.ui.window.SManager with this code qssite.util.BusHelper.dispachMessageToBus('manager-window-to-front', win, this); I get from the generate.py script "Unknown global symbol used: qssite.util.BusHelper.dispachMessageToBus" I know it has something to do with declared namespaces. I have read the docs but I can't quite figure out how exactly can I make one namespace available to the other. Should I change somehow the Manifest.json or the config.json? P.S.: I am including here the code for the BusHelper class in case I made a mistake qx.Class.define('qssite.util.BusHelper', { extend: qx.core.Object, statics: { /** * * @param message {string: the message to be dispached} * @param data {object: Optional. The object to be dispached} * @param sender {Optional. The sender of the message} */ dispachMessageToBus: function(message, data, sender) { var msg = new qx.event.message.Message(message); if(data !== undefined) { msg.setData(data); } if(sender !== undefined) { msg.setSender(sender); } qx.event.message.Bus.getInstance().dispatch(msg); } } }); ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel