Stealing the contents of another application's tree view
- by User1
I have an application with a very large TreeView control in Java. I want to get the contents of the tree control in a list (just strings not a JList) of XPath-like elements of leaves only. Here's an example
root
|-Item1
|-Item1.1
|-Item1.1.1 (leaf)
|-Item1.2 (leaf)
|-Item2
|-Item2.1 (leaf)
Would output:
/Item1/Item1.1/Item1.1.1
/Item1/Item1.2
/Item2/Item2.1
I don't have any source code or anything handy like that. Is there I tool I can use to dig into the Window item itself and pull out this data? I don't mind if there are a few post-processing steps because typing it in by hand is my only other option.