Update: I found this message from 2012. http://qooxdoo.678.n2.nabble.com/How-to-set-up-a-custom-shared-namespace-and-use-in-my-project-in-Qooxdoo-td7365092.html
I did what mr. Herchenroeder suggested in the second post and it works great and looks like a more clean solution. Still I would like to know if it is possible to do it like I was trying initially. If yes, how? On 08/03/2015 10:12 μμ, voger wrote: > 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