Bug 552413

Summary: Menu in toolbar is disabled
Product: [Eclipse Project] Platform Reporter: Gabi Boros <gboros>
Component: UIAssignee: Rolf Theunissen <rolf.theunissen>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jcompagner, loskutov, rolf.theunissen, sebastian.ratz
Version: 4.13Keywords: regression
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547050
https://bugs.eclipse.org/bugs/show_bug.cgi?id=20298
https://bugs.eclipse.org/bugs/show_bug.cgi?id=30423
https://bugs.eclipse.org/bugs/show_bug.cgi?id=552659
Whiteboard:
Attachments:
Description Flags
sample eclipse application none

Description Gabi Boros CLA 2019-10-25 05:03:26 EDT
Created attachment 280417 [details]
sample eclipse application

There seems to be a regression in 4.13 (versus 4.12) related to menus enable status. Please have a look on the attached sample application: if you open the drop-down from the first item in the toolbar, you will see that the second menu entry is disabled, but this is not the case in 4.12. Could be this related to this case: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547050 ?
Comment 1 Andrey Loskutov CLA 2019-10-25 11:48:44 EDT
(In reply to Gabi Boros from comment #0)
> Created attachment 280417 [details]
> sample eclipse application
> 
> There seems to be a regression in 4.13 (versus 4.12) related to menus enable
> status. 

What "seems" means: did it worked in 4.12 or not?

> Could be
> this related to this case:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=547050 ?

Probably not, reverting the change doesn't fix your example.

May be bug 552361?

You could help if you would check out platform UI code and bisect to the commit that breaks your application.

See https://wiki.eclipse.org/Platform/How_to_Contribute
Comment 2 Johan Compagner CLA 2019-10-25 13:57:29 EDT
no it works in 4.12 (if you switch between target platforms you can see that in the sample)
But it doesn't work in 4.13

But there is something weird..
Under Linux the menu items never enabled what ever you do.
Under Windows the menu is first disabled, but if you click on it, they are suddenly getting enabled
And i think under OSX they are just enabled all the time...
Comment 3 Rolf Theunissen CLA 2019-10-27 07:19:49 EDT
Bug 20298 and Bug 30423 are related, I don't think it is Bug 552361.

Something changed that made the UI widgets to only be created when the become really visible. The current code checks for the UI widgets for the sub-menus to be available, which is no longer true as they are only created at the first time they are showed.
Comment 4 Andrey Loskutov CLA 2019-11-04 07:56:41 EST
See also bug 552659.
Comment 5 Sebastian Ratz CLA 2019-11-06 07:05:21 EST

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