Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326739

Summary: invalid expression variable for "org.eclipse.pde.ui.openPluginArtifact" menu contribution
Product: [Eclipse Project] PDE Reporter: Remo Loetscher <remo.loetscher>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: curtis.windatt.public, remo.loetscher
Version: 3.6.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Remo Loetscher CLA 2010-10-01 03:02:04 EDT
Build Identifier: 3.6.1.v20100810_r361

According to the ISources interface the variable for the active perspective should be "activeWorkbenchWindow.activePerspective" not "...
.currentPerspective".


plugin.xml:
[...]
<menuContribution
                locationURI="menu:navigate?after=open.ext2">
[...]
             <command
                   commandId="org.eclipse.pde.ui.openPluginArtifact"
                   icon="$nl$/icons/obj16/open_artifact_obj.gif"
                   label="%pluginsearch.action.menu.name">
                <visibleWhen>
                <or>
               		<with
                    	 variable="activeWorkbenchWindow.currentPerspective">
                  		<equals
                        	value="org.eclipse.pde.ui.PDEPerspective">
                  		</equals>
               		</with>
               		<with
                         variable="activeContexts">
                      <iterate
                            operator="or">
                         <equals
                               value="org.eclipse.pde.ui.SearchActionSet">
                         </equals>
                      </iterate>
                   </with>
               </or>
                </visibleWhen>
             </command>
          </menuContribution>
[...]

Reproducible: Always
Comment 1 Curtis Windatt CLA 2012-10-11 13:30:31 EDT
This action was moved to the commands framework.