Bug 430092 - Sirius is no more able to empty the GMF action bar
Summary: Sirius is no more able to empty the GMF action bar
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0M6   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 1.0.0M6   Edit
Assignee: Maxime Porhel CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 428322
Blocks:
  Show dependency tree
 
Reported: 2014-03-11 07:33 EDT by Maxime Porhel CLA
Modified: 2014-03-17 10:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2014-03-11 07:33:35 EDT
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, ...).
Comment 1 Maxime Porhel CLA 2014-03-11 07:38:49 EDT
See https://git.eclipse.org/r/23187 for correction proposal.
Comment 2 Maxime Porhel CLA 2014-03-11 11:47:35 EDT
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.
Comment 3 Pierre-Charles David CLA 2014-03-17 09:39:11 EDT
Verified on the final M6 release.
Comment 4 Pierre-Charles David CLA 2014-03-17 10:07:04 EDT
Available in Sirius 1.0.0M6 (see https://wiki.eclipse.org/Sirius/1.0.0M6).