On 08/09/2010 11:32 AM, Stefan Andersson wrote:
> I make the following changes: qx -> qxe
>
> root
> I---tools
> I I---source
> I I---class
> I I---qxe
> I I---ui
> I I---A
> I I---B
> I---App
>
> in A and B directories I have two new widgets created. I want to access them
> from the application App.
>
> the App/config.json:
>
> "libraries" :
> {
> "library" :
> [
> {
> "manifest" : "../tools/trunk/Manifest.json"
> }
> ]
> }
Ok, just an aside, but in your directory diagram, there is no "trunk"
under "tools", but that's probably just an omission.
>
> the tools/trunk/Manifest.json:
>
> "provides" :
> {
> "namespace" : "qxe",
> "encoding" : "utf-8",
> "class" : "source/class",
> "resource" : "source/resource",
> "translation" : "source/translation",
> "type" : "contribution"
> }
>
> and it works with one Manifest.json file.
Good.
>
>
> I think this can be better documented!
Mh, actually I think it's all over the place, it's in the skeletons, in
the introduction of the manual, asf. Most people seem to get along
pretty well. Can you be more specific in which chapter of the manual you
looked for this information and didn't find it?!
>
> It is a pity that we can not prune and graft to the existing name struture,
> qx. Don't you think it is useful?
Well, I'm not so sure. If you want to *overwrite* existing framework
classes, this is actually not easy, but then, why would you want to do
that?! You can easily *extend* framework classes through inheritance on
the OO level and achieve whatever you want. And this is the recommended way.
You can even *extend* the framework with new name spaces if you are so
inclined, by e.g. creating a library with a complex name space like
"qx.ui.mynewwidgets". But I find even that questionable. Why not
creating a distinct name space like "mylib.ui.mynewwidgets"?! The
framework provides a base library, and you create your own libraries on
top of it, adding new and inheriting from the base classes. Why force
everything under one common root name space?! You wouldn't try to do the
same thing to the "java.*" name space in Java, would you?!
T.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel