Community
Participate
Working Groups
During the verification of Bug 428322 on a Luna M6 target platform, we discovered that the GMF actions are not removed from the main toolbar any more. This should be done in org.eclipse.sirius.diagram.part.SiriusDiagramActionBarContributor.init(IActionBars). The action bar is filled with the defaut GMF actions in super.init(), then we remove all unneeded toolbar items. But during the bar.updateActionBars(), the children of all menu manager items are added to the toolbar and then we have 70 items instead of the 27 expected items. The items are duplicated in the toolbar and our removal code is not sufficient any more. Furthermore, the UI is updated on each contribution add, this slower a lot the diagram opening. The wrong population of the tabbar during UI refresh/updateActionsBars() looks like a platform bug. If we defer the action bars update, the update is done only once. Furthermore it occurs after the GMF actions removal. It makes the diagram opening faster (no more update remove an action, update, ...).
See https://git.eclipse.org/r/23187 for correction proposal.
Reviewed by Pierre-Charles. See https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f348205a46b708e99854d6828a82014c7945edcf Bug 430116 has been open to deal with the underlying issue with menu manager contributions to action bars.
Verified on the final M6 release.
Available in Sirius 1.0.0M6 (see https://wiki.eclipse.org/Sirius/1.0.0M6).