[eclipse plugin ] adding a command and control visibility [message #549628] |
Tue, 27 July 2010 12:08 |
Eclipse User Messages: 34 Registered: July 2010 |
Member |
|
|
hello !
I have added a command in the menu that appears when right clicking with the mouse
in the package explorer view .
I want this command to be visible in the menu only when I click on a file with a particular extention .
I read many articles that explain how to use "visible when " but I didn't manage to figure how to do in my case
here is the part of the plugin.xml that adds the command
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.jdt.ui.PackageExplorer">
<command
commandId="my id"
label="my label"
style="push">
</command>
</menuContribution>
</extension>
thanks so much for helping me
[Updated on: Tue, 27 July 2010 12:10] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03431 seconds