Examples of LPDMODOMFactory


Examples of com.volantis.mcs.eclipse.ab.editors.dom.LPDMODOMFactory

        XPath xpath = new XPath(requiredElementXPath,
                                new Namespace[] {MCSNamespace.LPDM});
        SAXBuilder builder = new SAXBuilder();

        // Make sure we create the DOM with default LPDM namespace
        builder.setFactory(new LPDMODOMFactory());

        return (ODOMElement)xpath.selectSingleNode(
            builder.build(new StringReader(xml)).getRootElement());
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.dom.LPDMODOMFactory

    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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.