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

Bug 367194

Summary: Did the order of view and toolbar creation change in 4.x?
Product: [Eclipse Project] Platform Reporter: Andrew Overholt <overholt>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ebaron, pwebster, remy.suen, rolf.theunissen
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Overholt CLA 2011-12-20 09:49:03 EST
In the Linux Tools Valgrind plugin, we create the view's toolbar programmatically based on which underlying Valgrind tool is selected.  This seems to be an issue in 4.x as the toolbar appears to get disposed after the view calls createPartControl.  Elliott (on CC) noticed this issue while investigating bug 366831.  To workaround the issue he changed the Valgrind view creation code to show the view before creating the toolbar actions.

Is this a bug or expected behaviour in 4.x?
Comment 1 Remy Suen CLA 2011-12-20 10:02:09 EST
(In reply to comment #0)
> In the Linux Tools Valgrind plugin, we create the view's toolbar
> programmatically based on which underlying Valgrind tool is selected.  This
> seems to be an issue in 4.x as the toolbar appears to get disposed after the
> view calls createPartControl.

Yes, this happens in CompatibilityView. I don't remember the exact reason why we're doing this though.
Comment 2 Rolf Theunissen CLA 2019-08-12 14:00:03 EDT
Marking as duplicate of Bug 511846, which has some more information.

*** This bug has been marked as a duplicate of bug 511846 ***