Community
Participate
Working Groups
This is a split off from Bug 369220, point 2. We have a problem that the visualization of the decorating shape will be cut if we move the start or end shape of the connection. Then the angle changes and the shape (e.g. ellipse) will be cut at a border. If the shape is bigger or the zoom is activated this problem will occur more frequently. See following example code for reproduce it and the two appended files in the zip. ConnectionDecorator decorator = peCreateService.createConnectionDecorator(newConnection, false, 0.5, true); Ellipse ellipse = gaService.createEllipse(decorator); gaService.setLocationAndSize(ellipse, 1, 9, 150, 150); Here's th link to the original attachment that shows the cut: https://bugs.eclipse.org/bugs/attachment.cgi?id=209816
Created attachment 214580 [details] construction in sketch editor (free connection, with patched create functionality)
Created attachment 214581 [details] reproducable without zooming
we are close to a solution
commit 7c0a2c7bed07543288c31f46eb522371393da466 Author: cbrand <christian.brand@sap.com> 2012-04-26 18:23:35 Committer: cbrand <christian.brand@sap.com> 2012-04-26 18:23:35 Parent: 9d34b22b228cb4409055191435d4064574c2132e (Bug 369371 - ConnectionDecorator visualization cut)
The problem still exists. It's reproducible in the sketch sample. Add the following lines to the execute method of the ToggleDecorator feature: decorator = pecService.createConnectionDecorator(connection, false, 0.5, true); Ellipse e = gaService.createEllipse(decorator); e.setForeground(manageColor(IColorConstant.DARK_BLUE)); Graphiti.getLayoutService().setLocationAndSize(e, 0, 0, 150, 150); Then create two nodes and connect them with a freeform connection. Move the nodes around and you will see that parts of the ellipse will be cut.
Some improvements have been implemented for Juno M7, but the bug is not completely fixed. To really fix the remaining issues larger changes would be necessary that appear too dangerous for the RC phase and the rather exotic case in which the bug appears. Postponed to post-Juno.
Added for Kepler
Marked as optional for Kepler due to limited capacity