Creating a Pictogram link triggers refresh of entire diagram (bug?) [message #1705330] |
Thu, 13 August 2015 15:45  |
Eclipse User |
|
|
|
Hi,
We've been investigating why our larger graphiti diagrams are very slow at refreshing when adding or removing shapes (up multiple seconds).
It turns out that this due to the fact that each shape is linked to a business object in the AddXXXFeature method:
public PictogramElement add(IAddContext context) {
...
link(imageShape, visibleGA);
...
This triggers an EMF change notification to the Diagram rootnode which causes the DiagramChangelistener to call the setRefreshAll.
Is is possible to filter out EMF change events related to link that are caused be creating a link to avoid refreshing the entire diagram or is this the intented behavior?
Best regards
Peder Herborg
|
|
|
|
Powered by
FUDForum. Page generated in 0.02885 seconds