[410073] Cache the groups instead of recomputing them every single time.
commit025e33d0740c03a302216b24e62f5c48d6cbc1c4
authorLaurent Goubet <laurent.goubet@obeo.fr>
Mon, 10 Jun 2013 07:31:18 +0000 (10 09:31 +0200)
committerAxel Richard <axel.richard@obeo.fr>
Mon, 10 Jun 2013 08:11:32 +0000 (10 10:11 +0200)
treef93e85779a2f2e64c77d7b2b866fe2517622755e
parent234f07e86c28de5f90251f38d2139537832d3f25
[410073] Cache the groups instead of recomputing them every single time.

Since groups lack a proper implementation of equals(), recomputing
them prevents the structure viewer from preserving its expanded state.
That is not a major hindrance per se, but it also causes concurrent
modification exceptions in the current state of the dual command stack.

Bug: 410073
Change-Id: Ib29d00be0f734e6db7fb743e509657aff6c2cd88
plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/StructureMergeViewerGrouper.java