Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to create node on click to another node?
how to create node on click to another node? [message #118639] Wed, 11 April 2007 23:50
Eclipse UserFriend
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
Previous Topic:Display.syncExec() - NullPointerException
Next Topic:edges between edges
Goto Forum:
  


Current Time: Thu May 01 13:48:39 EDT 2025

Powered by FUDForum. Page generated in 0.02877 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top