How can i print the org.eclipse.core.resources for an eclipse plugin
===

I'm currently working on an Eclipse plugin.
I want to add an item on right-click menu in WorkbenchView of my plugin.
This item should be visible only to a specific object.

I tried to use the VisibleWhen tag like this : 

        <extension
             point="org.eclipse.ui.menus">
          <menuContribution
                locationURI="popup:MyURI">
             <command
                   commandId="MyCommandId"
                   style="push">
                <visibleWhen
                      checkEnabled="false">
                   <test
                         property="org.eclipse.core.resources.name"
                         value="WORKSPACE">
                   </test>
                </visibleWhen>
             </command>
          </menuContribution>
       </extension>

And when I do it the menu item never appears.

So is there a way to test the properties values of org.eclipse.core.resources and know what is wrong with them ?


Thanks.

Alexandre.