| Selecting tree items more easily by using something like XPATH [message #25779] |
Wed, 04 March 2009 04:40 |
Hans Schwaebli Messages: 70 Registered: July 2009 |
Member |
|
|
I discovered that a SWT tree might contain duplicate entries with the same
name, for example:
root
-book
-title
-book
-title
Its a kind of hierarchical like in a XML document. In order to select a
certain node, or several ones, you need something like XPATH.
A difference between XML and a tree might be that the tree has to be
expanded (I think) in order to access its children items.
Maybe it is not top priority, but what do you think about having XPATH
capabilities for selecting a tree item?
An example could be:
tree.select("/doc/chapter[1]");
|
|
|
Powered by
FUDForum. Page generated in 0.01548 seconds