|
Re: how to enable a menuitem by default [message #505095 is a reply to message #505075] |
Sat, 26 December 2009 18:59 |
|
Hi,
how to add an Exit command (and lots of other stuff) is described here:
http://www.vogella.de/articles/EclipseCommands/article.html
In your case you most likely missing the handler.
Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
On 26.12.2009 04:52, raff wrote:
> Hi, I´m starting on Eclipse RCP and I try to create a simple menuitem to
> close the window:
>
> <extension
> point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="menu:org.eclipse.ui.main.menu">
> <menu
> id="fileMenu"
> label="File">
> <command
> commandId="firstapp.Exit"
> label="Exit"
> style="push"
> tooltip="Exit the app">
> </command>
> </menu>
> </menuContribution>
> </extension>
>
> The menuitem Exit appears in the "File" menu but it´s disabled. Anything
> missing?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04332 seconds