Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » View menuContribution always disabled
View menuContribution always disabled [message #597802] Sat, 23 May 2009 09:39
Alain Sahli is currently offline Alain SahliFriend
Messages: 19
Registered: July 2009
Junior Member
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
Previous Topic:--launcher.ini doesn't work in Run Configuration
Next Topic:How to detect if launching from eclipse
Goto Forum:
  


Current Time: Fri Jun 18 05:39:57 GMT 2021

Powered by FUDForum. Page generated in 0.01808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top