Visit Mozilla.org

Talk:XUL Explorer

From MDC

I added a method to the toolsController object in the controllers.js file in XUL Explorer to format the XUL in the edit window so that it looks decent. My method implements an 11-state state machine to handle the job. I also added a menu item to the tools menu, a keyboard shortcut (F8), and a bit of code to doInsertSnippet() and doLoadSnippet() to invoke the formatter automatically when you add a snippet to the XUL text. The latter changes are usually successful, but not always. I assume there is a timing issue there that someone else would know about.

I would be happy to share my changes, but I don't know how to do that. Several XUL Explorer files are changed to support the menu item addition. Can someone let me know how I can make this available?

My personal goal here is to use XUL Explorer to rapidly prototype an arbitrary GUI for Java or C#. I have written Java code that translates XUL elements to Java Swing components (not all, but the main ones), and I can see XUL Explorer as an ideal IDE for this rather specialized application. My next mini-project is to add a simple XUL/JS "plugin" that can add the location and size information that Firefox/XULRunner maintains as you size the window into an output XUL file. I've written the plugin, which works standalone, so I now need to integrate it with XUL Explorer. I'll be looking to do that over the next week or so.

Paul Medlock


Paul - I am going to request a bugzilla component for XUL Explorer. You could then create a feature request and attach a patch. Until then, feel free to send me a patch [mark dot finkle at gmail dot com]

Mark Finkle

The bugzilla component has been created - see XUL Explorer#Contributing --Nickolay 08:32, 17 May 2007 (PDT)