Matthew Gregory wrote:
> thron7 you genius!
>
Ah, you much too flattering ... I'm actually standing on the shoulders
of giants, trying to keep the balance ;).
> That sounds pretty much perfect for what we wanted. IIRC we would also
> be able to use the JAVADOC comments to display useful messages in the
> autocomplete for Aptana (and any other IDEs that support it).
>
>
Exactly! To make it more tangible I'd like to get back to Peter's
posting. If you look at his text file...
>>> //-----------------------------------------------------------------
>>> // Generated Tue, 08 Jul 2008 11:36:46 +0200
>>> //-----------------------------------------------------------------
>>>
>>> // File: \application\Basic.js[33]
>>> qx.application.Basic = function(){return this;};
>>> qx.application.Basic = {
>>> main : function(){;}, // 55
>>> close : function(){;}, // 67
>>> terminate : function(){;} // 76
>>> };
>>>
and then at the generated XML for the same class:
<class name="Basic" interfaces="qx.application.IApplication"
superClass="qx.core.Target" fullName="qx.application.Basic"
type="class" packageName="qx.application">
<desc>
<text><p>Base class for all non <span
class="caps">GUI</span> qooxdoo applications.</p>...
</desc>
<methods>
<method name="close">
<desc>
<text><p>Called in the document.beforeunload event of
the browser....</text>
</desc>
<return defaultValue="null">
<desc>
<text><p>message text on unloading the
page</p></text>
</desc>
<types>
<entry type="String"/>
</types>
</return>
</method>
<method name="main">
<desc>
<text><p>Called in the document.onload event of the
browser....</text>
</desc>
</method>
<method name="terminate">
<desc>
<text><p>Called in the document.onunload event of the
browser....</text>
</desc>
</method>
</methods>
</class>
it looks like it would be straight-forward to XSLT the XML into the
target format. (Only thing missing are the "// <num>" parts of the
method lines; are these line numbers? Could you do without?)
Maybe we should set up some project infrastructure for efforts like these?!
Thomas
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel