Community
Participate
Working Groups
Created attachment 265382 [details] screenshot when right clicking on the edge Steps to reproduce. - install the family metamodel - import the attached projects into your workspace - open "basicfamily.sample" - open the diagram "straighten" - right-click on the edge in between "Léa" and "Paul" => the straighten actions are all disabled though should be enabled the routing style is "oblique", I can't find any reason (beside a bug) explaining why those actions are disabled.
Created attachment 265383 [details] projects to reproduce the situation
Confirmed. After some debugging, this is caused to the use of non-rectangular shapes; the code which is used to decide if the command is executable tests if the source and target of the edge are on "compatible" sides, and in org.eclipse.sirius.diagram.ui.internal.edit.commands.StraightenToCommand.getLocation(Point, Rectangle) which determines the side, we assume the edge's endpoints are exactly on the bounding-box. If they are not *exactly* on the side, the location computation is wrong, and canExecute() will eventually return false.