|
|
Re: View menuContribution always disabled [message #62839 is a reply to message #62807] |
Sun, 24 May 2009 18:23 |
|
Hi,
The following tutorial gives a example how to add a command to the view
toolbar.
http://www.vogella.de/articles/EclipseCommands/article.html
I hope this helps.
Best regards, Lars
Alain Sahli wrote:
> I found how to enable my button in the toolbar. The class
> (RefreshHandler) which implements IHandler has a method called
> isEnabled(). I return true and my button is enabled.
>
> But my problem still exist. I changed the locactionURI in my plugin.xml :
>
> locationURI="popup:ch.wess.ezclipse.varbrowser.view"
>
> But I don't see a context menu in my view :-(
>
>
>
|
|
|
|
Re: View menuContribution always disabled [message #63117 is a reply to message #62855] |
Mon, 25 May 2009 08:30 |
|
Hi Alain,
happy to hear this.
Best regards, Lars
Alain Sahli wrote:
> Hi Lars,
>
> Thanks a lot ! Your article helped me and it works now ;-)
>
> My handler implemented IHandler and the execute method was never called.
> I change this and extended the AbstractHandler class, the execute method
> is now called.
>
|
|
|
|
Re: View menuContribution always disabled [message #597822 is a reply to message #62807] |
Sun, 24 May 2009 18:23 |
|
Hi,
The following tutorial gives a example how to add a command to the view
toolbar.
http://www.vogella.de/articles/EclipseCommands/article.html
I hope this helps.
Best regards, Lars
Alain Sahli wrote:
> I found how to enable my button in the toolbar. The class
> (RefreshHandler) which implements IHandler has a method called
> isEnabled(). I return true and my button is enabled.
>
> But my problem still exist. I changed the locactionURI in my plugin.xml :
>
> locationURI="popup:ch.wess.ezclipse.varbrowser.view"
>
> But I don't see a context menu in my view :-(
>
>
>
|
|
|
|
Re: View menuContribution always disabled [message #597831 is a reply to message #62855] |
Mon, 25 May 2009 08:30 |
|
Hi Alain,
happy to hear this.
Best regards, Lars
Alain Sahli wrote:
> Hi Lars,
>
> Thanks a lot ! Your article helped me and it works now ;-)
>
> My handler implemented IHandler and the execute method was never called.
> I change this and extended the AbstractHandler class, the execute method
> is now called.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02670 seconds