Bug 571225 - Cannot disable menu options on Perspectives
Summary: Cannot disable menu options on Perspectives
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 11:06 EST by Filipa Durão CLA
Modified: 2021-02-17 13:47 EST (History)
1 user (show)

See Also:


Attachments
The "Source" and "Refactor" options are disabled but still show up in the menu above (57.85 KB, image/jpeg)
2021-02-16 11:06 EST, Filipa Durão CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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