Bug 571225

Summary: Cannot disable menu options on Perspectives
Product: [Eclipse Project] Platform Reporter: Filipa Durão <up201606640>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: rolf.theunissen
Version: 4.20   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
The "Source" and "Refactor" options are disabled but still show up in the menu above none

Description Filipa Durão CLA 2021-02-16 11:06:48 EST
Created attachment 285567 [details]
The "Source" and "Refactor" options are disabled but still show up in the menu above

On Perspectives [Menu Visibility], one can choose what menu items to display or not. I wish to hide almost all of them, which I could, except for "Refactoring" and "Source". They do not appear as "toggled" in the checkboxes, but they are displaying on the menu. However, I cannot disable them, both because they appear as already disabled and because a warning shows up stating that "cannot be made visible because all of its children are in unavailable action sets" or "cannot be made visible because it is in the unavailable 'null' action set".

This detail, even though minor, is important for my master thesis work.

How can I disable these two menus?
Comment 1 Rolf Theunissen CLA 2021-02-17 13:47:17 EST
On a Java perspective and the resource perspective I can deselect all of the menus, and they are all hidden.

Which version of Eclipse are you using? It cannot be version 4.20, as there are not even nightly versions available.

There could be some inconsistency between the E3 compatibility API and the E4 model. Which menu items remain in the menus after they are deselected in CPD?

If you really need to hide them, you could try to use the E4 model spy and toggle the visibility of the menus. Note that behavior can be *very* unpredictable when you start messing around with the model spy.
https://marketplace.eclipse.org/content/e4-spies