public void createControl() {
Button button = new Button(getShell(), SWT.PUSH);
button.setText("Press me for a node selection dialog");
// Create a tree for the dialog.
LPDMODOMFactory factory = new LPDMODOMFactory();
// Create first subtree
Element parent1 = factory.element("parent1");
Element child1a = factory.element("child1a");
Element child2a = factory.element("child2a");
parent1.addContent(child2a);
parent1.addContent(child1a);
// Create second subtree
Element parent2 = factory.element("parent2");
Element child1b = factory.element("child1b");
Element child2b = factory.element("child2b");
parent2.addContent(child1b);
parent2.addContent(child2b);
// Create the root element and add content
final ODOMElement rootElement = (ODOMElement) factory.element("root");
rootElement.addContent(parent2);
rootElement.addContent(parent1);
// Create the content provider for the dialog.
final class TestContentProvider