Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Is it possible to use buried xml tree nodes in diagram
Is it possible to use buried xml tree nodes in diagram [message #937253] Mon, 08 October 2012 16:40 Go to next message
Eyck Jentzsch is currently offline Eyck Jentzsch
Messages: 16
Registered: August 2012
Junior Member
Hi,
I would like to use deeply buried nodes of xml tree as nodes (and connections) in a diagram. How do I specify the properties holding them?
In the examples of the samples plugin the nodes are children of the root node so that they can be easily specified.

Best regards

-Eyck
Re: Is it possible to use buried xml tree nodes in diagram [message #937839 is a reply to message #937253] Tue, 09 October 2012 06:07 Go to previous messageGo to next message
Hazem ELRAFFIEE is currently offline Hazem ELRAFFIEE
Messages: 61
Registered: September 2012
Member
You may try to use the "with" construct. Try this:

<with>
    <path>GrandParent/Parent/Child</path>
    <default-panel>
        <content>
            <property-editor>Property1</property-editor>
            <property-editor>Property2</property-editor>
            <property-editor>Property3</property-editor>
        </content>
    </default-panel>
</with>
Re: Is it possible to use buried xml tree nodes in diagram [message #938215 is a reply to message #937839] Tue, 09 October 2012 13:10 Go to previous message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
The with construct is only applicable for forms. If the model needed for the diagram is buried within a larger model, you can navigate to the relevant root element when instantiating SapphireDiagramEditor in the editor class.

- Konstantin
Previous Topic:Does XMLBinding use XPath?
Next Topic:problem having namespace declaration within xml tree
Goto Forum:
  


Current Time: Thu Aug 21 14:23:47 EDT 2014

Powered by FUDForum. Page generated in 0.01471 seconds