SWT/XML is a lightweight XML markup language for describing Eclipse SWT / RCP user interfaces. It includes an Eclipse Web Tools based IDE editor plug-in.
Eclipse Update Site: http://www.swtxml.com/updates/
Requirements: Eclipse 3.4 for RCP/Plug-in Developers or newer, Java 1.5 or newer
Features
- Very readable and compact XML grammar for describing SWT user interfaces. Example:
<?xml version="1.0" encoding="utf-8"?>
<Composite xmlns="http://www.swtxml.com/swt" layout="layout:fill;">
<TabFolder>
<TabItem text="RowLayout">
<Composite layout="layout:row; type:vertical; spacing:5;">
<Button text="Button" style="CHECK"/>
<Label text="Test:" layoutData="widthHint:120;"/>
<Combo style="READ_ONLY" toolTipText="whatever"/>
</Composite>
</TabItem>
</TabFolder>
</Composite>- Easy to learn and to use. SWT/XML provides a 1:1 mapping from SWT widget classes to XML tags. If you know SWT, you just need to learn few general rules.
- I18N support using label properties and resource bundles (same as for plugin.xml files):
<Button text="%property"/>
- Eclipse IDE plug-in with Content Assist and Preview:
- Strict markup validation with meaningful exception messages.
- Easy integration in your application, the runtime library of SWT/XML is very small (~ 170KB) and has almost no external dependencies (except for Eclipse RCP plug-ins)