1

I need to write an editor with two Trees, where user can map nodes from one tree to another. The biggest challenge is to draw connection line between TreeItems.
Are there any samples that I can use?

There is the link for JDeveloper XSD Mapper tree view https://technology.amis.nl/wp-content/uploads/images/xsdMapper.jpg

Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79
Happy Coder
  • 1,293
  • 1
  • 19
  • 35

1 Answers1

2

There is a related question here.

enter image description here

There is also the Nebula TreeMapper. Looks like this:

enter image description here

Community
  • 1
  • 1
Baz
  • 36,440
  • 11
  • 68
  • 94
  • I looked at TreeMapper the problem with that ,the connection line its not up to actual node ... i need some how to connect line to the node.. – Happy Coder Apr 27 '15 at 21:02
  • @MariaFinkelstein What do you mean with "it's not up to actual node"? – Baz Apr 27 '15 at 21:06
  • if you look at the link I posted, you will see the connections between the nodes are almost touching the node. It's easier to see it than explain it. :) – Happy Coder Apr 28 '15 at 00:26
  • 1
    @MariaFinkelstein I don't think it is possible to draw lines in the left hand part of the TreeViewer where the node expansion toggles are shown. – greg-449 Apr 28 '15 at 06:40
  • @MariaFinkelstein Found [another related question](http://stackoverflow.com/questions/24280706/java-treeviewer-swt-right-to-left). The OP is using two trees, one of the left-to-right and is drawing stuff between them. Maybe you can contact the OP and ask for the code. – Baz Apr 28 '15 at 08:09
  • @MariaFinkelstein *"One of them right-to-left" is what I meant. – Baz Apr 28 '15 at 08:33
  • @Baz nice, i think i got all i need, can't wait to get to the office and try it :) – Happy Coder Apr 28 '15 at 13:40