Skip to main content

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: 243
Registered: March 2010
Location: France
Senior Member

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.

kind regards,
Previous Topic:Building SchemaEditor example with Eclipse Version: 3.7.1
Next Topic:How to start with GEF and EMF transactions
Goto Forum:

Current Time: Tue Oct 26 06:56:50 GMT 2021

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

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

Back to the top