Selection lost after perspective switch [message #628863] |
Fri, 24 September 2010 13:52 |
David Meng Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have a perspective that extends Java perspective and a context menu whose visibility depends on the node selected on the package explorer, something like this:
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?after=additions ">
<menu>
<command/>
<visibleWhen checkEnabled="false">
<with variable="selection">
<iterate>
<adapt type="org.eclipse.core.resources.IProject"/>
</iterate>
</with>
</visibleWhen>
</menu>
</menuContribution>
</extension>
I selected a IProject from package explorer and my menu is shown as expected. However if I switched between Java and my perspective, the selection remains there but my context menu does not show any more.
Does anyone know a solution or how to debug this problem?
Thanks so much for help!
David
|
|
|
Powered by
FUDForum. Page generated in 0.02398 seconds