Community
Participate
Working Groups
I have an extension like this: <extension point="org.eclipse.ui.menus"> <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.ui.main.toolbar"> <toolbar id="com.ibm.etools.webtools.webperspective.project.wizard.toolbar" label="myLabel"> <command commandId="myCommandId" id="id" label="Label" icon="icon" style="push"> <visibleWhen> <with variable="activeWorkbenchWindow.activePerspective"> <or> <equals value="org.eclipse.wst.web.ui.webDevPerspective"/> <equals value="org.eclipse.jst.j2ee.J2EEPerspective"/> </or> </with> </visibleWhen> </command> </toolbar> </menuContribution> </extension> This works perfect until you close all perspectives. The toolbar is never updated to remove them. Since there is no active perspective, this toolbar command should not be showing.
This bug is also reproducible with 3.8.2
It's still reproducible with 4.6.1 As a workaround add the following: <and> <with variable="activeWorkbenchWindow"> <test property="org.eclipse.ui.workbenchWindow.isPerspectiveOpen"> </test> </with> ... </and>
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Still present in 4.20, the variable is not updated on perspective close.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/180570