Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connections selection after changing z-order of layers
Connections selection after changing z-order of layers [message #813804] Mon, 05 March 2012 18:27
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 143
Registered: March 2010
Location: France
Senior Member
Hello,

By Default, if a connection cross a node, the connection is displayed on top of the node.
I wanted to change this behavior in order to have nodes above connections (similarly to zest for example).
I manage to do so by overriding ScalableRootEditPart.createPrintableLayers() and changing order of layer creation, like described in some posts here.

It works excepti for connection selection.

As now Primary Layer is on top of Connection Layer, selection is taken by the root figure, so it is not possible anymore to select connections (to create bendpoint for example).

I manage to restore this by overriding the findFigureAt in the viewport created by the ScalableRootEditPart, but it seems a quite dirty workaround to me.

As it seems to be a quite common need, to have nodes on top of connection, I was wondering what is the best solution to achieve this.

Thanks,
kind regards,
Arnaud
Previous Topic:ZEST: table cells as nodes / nodes in table cells?
Next Topic:How to start with GEF and EMF transactions
Goto Forum:
  


Current Time: Mon Nov 24 15:34:29 GMT 2014

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

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