[ 日本語 | English ]
Menu
codegen for XUL
Hi there,

I shouldn’t forget to tell you that I’ve also created a useful eclipse plug-in for xul development as well as FireDictionary. It works as a wizard to create a new project. You might have known that we need to create a specific folder tree and some specific files to start a xul project. This plug-in does this such a really boring work automatically.

A folder tree generated by this wizard is like:

[project_name]
src
content
[project_name]
locale
[any locale name specified in the wizard]
[project_name]
skin
classic
[project_name]

The locale folder is for dtd files and properties files.
The skin folder is for css files and icon files.

contents.rdf files are present in the following folders.

  • src/content/[project_name]
  • locale/[locale name]/[project_name]
  • skin/classic/[project_name]

Also these ‘contents.rdf’s are ready to use with enough information.

The plugin also generates files ‘install.js’, ‘install.rdf’ and as well as ‘build.xml’.
The ‘build.xml’ is for ant. This build.xml generates xpi file. You’ll see the detail of this ant project by taking a look at the build.xml. It’s not complicated. It should be very straightforward.

By the files generated by this plug-in, the project is ready to code and even ready to deploy.

It’s under the GPL license.
It’s really useful.
Download
codegen for XUL src bin
How to use  
Select File -> New -> Project... from eclipse menu. Then you'll see a New Project dialog box.
Select 'Xul project' from the list to launch XUL wizard.
Enter 'Project Name', 'author' and 'Display Name'. Also select check boxes you need to generate coresponded directories. Specify 'locale' if you check the locale.

The entered values are basically used in 'install.rdf'.
  • Project Name is also used as a file names and folder names.
  • author is a develpper's name. It's shown in a property dialog of your extension as a credit.
  • Display Name is a name of the extension.
Let's try to do a file search to confirm places where the values are used.
What you have to do before publishing your plugin
You need to modify install.rdf generated by this plug-in. You have to generate GUID by yourself and put it into /RDF/Description/em:id in the file. Also You need to modify versions of target firefox. The versions which should be specified are the followings.
  • /RDF/Description/em:targetApplication/Description/em:minVersion
  • /RDF/Description/em:targetApplication/Description/em:maxVersion
Copyright c 2005 FireDictionary.com All Right Reserved.