how to create node on click to another node? [message #118639] |
Wed, 11 April 2007 23:50 |
Eclipse User |
|
|
|
Hi,
I'm trying to implement a mindmap-like behaviour: to create a node, one
should select a tool and click to the node, which will be the parent. Then:
1. a new node and the connection to the parent should be created
2. relayout must occur on node create and delete
So, moving nodes "by hand" should be forbidden.
I like how the default layout (accessible on "Arrange all") arranges the
nodes.
So, my questions are the following:
- How do I enable clicking with a tool on an element? I've added some code
to both EditHelper and SemanticEditPolicy, but it stays disabled when on
top of a node.
- How do I disable nodes move, but leave ArrangeRequest working?
- How do I call ArrangeRequest on node creation - it requires the list of
views to refresh, and the one to be created is missing at this time.
I'm looking forward to any ideas on these problems.
Regards,
Alexey
|
|
|
Powered by
FUDForum. Page generated in 0.02877 seconds