Community
Participate
Working Groups
Created attachment 274047 [details] Screenshot showing the bug The label attribute escape sequence can occurr in any point in a label, as described in https://www.graphviz.org/doc/info/attrs.html#k:escString. At the moment, "\N" is replaced by the node name, if the label consists of "\N" only, but not in any other case. This is related to bug #508830. However, as some support is already in place, I have opened a more specific bug report.
Comment on attachment 274047 [details] Screenshot showing the bug Due to an error on my side the screenshot was wrong.
Created attachment 274050 [details] Corrected screenshot showing the bug I have simplified the situation in the screenshot and added a refreshed graphviz rendering.
Created attachment 274087 [details] Screenshot showing the equivalent situation on an edge label
There are other cases where the replacement is not yet implemented, the most important ones are: - headlabel - label - taillabel - tooltip - xlabel A general solution should be implemented here, so that the Eclpipse GEF DOT Graph View can render the following dot graph properly: graph TestGraph { a [ label = "label = g:\G n:\N" tooltip = "tooltip = g:\G n:\N" xlabel = "xlabel = g: \G n:\N" ] a--b [ headlabel = "headlabel = g:\G e:\E" label = "label = g:\G e:\E" taillabel = "taillabel = g:\G e:\E" xlabel = "xlabel = g: \G e:\E" ] }
Changed title of bug from Implement correct handling of \N escape sequence in node label attribute and \E escape sequence in edge label attribute to Implement correct visualization-handling of name-replacing escape sequences (i.e. \E, \N, \G, \L, \H, \T) in node and edge escString attributes to better show that the issue can be solved for all escStrings (compare bug #508830) and to show that this bug is concerning the ui package.
GitHub Pull Request 19 created by [prggz] https://github.com/eclipse/gef/pull/19
With PR (#19) merged, the visualisation now works. The change was made in Dot2ZestAttributesConverter. Further discussion if these implementation should be moved to a deeper level is within the scope of bug #508830. As the issue at heart of this bug is fixed, I vouch for closing this as resolved.
Thanks for the patch, I merged your PR into the master branch. Resolving as fixed in 5.0.200.