View menuContribution always disabled [message #597802] |
Sat, 23 May 2009 05:39 |
Eclipse User |
|
|
|
Hello,
I did a view and I want to add a context menu to this view. First I tried
to do this :
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:ch.wess.ezclipse.varbrowser.view">
<command
commandId="ch.wess.ezclipse.varbrowser.refreshcommand"
id="ch.wess.ezclipse.varbrowser.refresh"
label="Refresh"
style="push"
tooltip="Refresh the subtree">
</command>
</menuContribution>
</extension>
But the context menu never appeared in my view. After that I tried to
change the locationURI to :
locationURI="toolbar:ch.wess.ezclipse.varbrowser.view">
Now I see the "refresh" button in the view's toolbar but it's always
disabled. I tried to add :
<visibleWhen
checkEnabled="true">
</visibleWhen>
But my button is still disabled.
I think I don't see my context menu because it's always disabled, how can
I enable my command ?
Thanks for help,
Alain
|
|
|
Powered by
FUDForum. Page generated in 0.02797 seconds