DVT e Language IDE User Guide
Rev. 19.1.20, 7 June 2019

27.3 SWT/XML Reference

A custom dialog is described in an XML file with .swtxml extension. The first line must declare the file as XML:

   <?xml version="1.0" encoding="utf-8"?>

The topmost element must be a Composite widget that defines the title of the dialog (specified by its id attribute) and the widgets that can be used (standard SWT widgets and custom DVT widgets):

 <Composite xmlns="http://www.swtxml.com/swt"
   xmlns:sv="http://www.dvteclipse.com/xmlns/customdialog/sv"
   xmlns:dvt="http://www.dvteclipse.com/xmlns/customdialog"
   id="Dialog Title">
 </Composite>

A widget is a graphical component (e.g. Textbox, Checkbox) or a container of other widgets (e.g. Composite, Group). Each widget has a corresponding XML tag. You can use any widget to create your dialog. If you specify an id attribute for the widget tag, it will also produce an output in the dialog result.