Here is a short description how use XUL Schema in Eclipse IDE – tested on Eclipse Indigo (3.7) and Eclipse Juno (4.2) with installed Eclipse XML Editors and Tools from Eclipse Web Tools Platform.

  1. Download the latest version of XUL Schema and unpack it
  2. Launch Eclipse IDE and go to  Window > Preferences
  3. Select preferences section XML > XML Catalog
  4. Find category User Specified Entries (see screen 1) and click on Add button:
    screen01
  5. Locate xul.xsd within your file system and submit the dialog:
    screen02
  6. Now should be our new catalog added:
    screen03

We have XUL Schema registered but Eclipse IDE still know nothing about XUL files so we need also register this new content type:

  1. Go to  Window > Preferences
  2. Select preferences section General > Content Types
  3. Find category Text > XML and select XML
  4. Click on Add new file association button and insert *.xul
  5. At the end you should see this:
    screen04

Now if we open any XUL file we got autocomplete, documentation (context and in documentation tab) and of course that we also can validate our XUL files:

screen05

Last edited Aug 15, 2012 at 7:44 PM by ondrej_donek, version 4

Comments

ondrej_donek Aug 15, 2012 at 5:58 PM 
Screenshots are taken from Eclipse 4.2 on Microsoft Windows 8 RC.