Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351358

Summary: [Compatibility] Toolbar ordering is off in 'Git Repositories' view
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: VERIFIED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: pwebster
Version: 4.1   
Target Milestone: 4.2 M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 331240    
Attachments:
Description Flags
Screenshot depicting the problem in question.
none
ToolBar rendering patch v1
none
ToolBar rendering patch v2 none

Description Remy Suen CLA 2011-07-06 13:26:23 EDT
Created attachment 199195 [details]
Screenshot depicting the problem in question.

We have two items at the end of the toolbar instead of the front. From a cursory analysis it looks like we don't have opaque model items representing those items.
Comment 1 Remy Suen CLA 2011-07-12 11:24:29 EDT
It almost feels like we need a specialized subclass of ToolBarManager here. Right now we have no way of knowing when someone adds or removes contribution items so it is not possible for us to determine when we should reconcile its list of items with the model's collection of opaque items.
Comment 2 Paul Webster CLA 2011-07-13 08:27:14 EDT
From a compat point of view, we have 2 points where we can reconcile the toolbar:

1) after the createPartControl(*) is called

2) after actionBars.updateActionBars() is called.

Views are not allowed to add things to their toolbar unless they call updateActionBars() (outside of createPartControl(*))

PW
Comment 3 Remy Suen CLA 2011-07-13 10:54:14 EDT
Created attachment 199590 [details]
ToolBar rendering patch v1

Paul, what do you think of this?
Comment 4 Remy Suen CLA 2011-09-12 07:58:34 EDT
Created attachment 203145 [details]
ToolBar rendering patch v2
Comment 5 Remy Suen CLA 2011-09-16 12:56:51 EDT
Ordering is also bad in the 'Breakpoints' view.
Comment 7 Remy Suen CLA 2011-10-26 08:21:48 EDT
Verified with I20111025-2000 on Windows XP.