Community
Participate
Working Groups
We have some context menu that has 4 levels, and it is set to be hidden for some conditions, however it is still visible but upon selecting it becomes disabled. Looks like it's related to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=34969 where it's purposely setting it as disabled (see code in org.eclipse.jface.action.MenuManager::updateMenuItem()). And it's hardcoded in eclipse code to only process menus up-to 3 levels, see org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerShowProcessor::showMenu() where the recursiveLevel is 2 (starting index 0). We would like those context menus to be hidden as defined based on visibleWhen clause not just disabled.