Dynamic menus [message #327060] |
Tue, 08 April 2008 07:09 |
Eclipse User |
|
|
|
Originally posted by: matthieucguard-ikariam.yahoo.fr
Hi,
I'm developping an RCP application and I don't understand the
commandParameter item under the org.eclipse.ui.commands extension point.
I tried to follow the problem view example but my dynamic menu remains
grayed.
Can someone help me?
|
|
|
|
Re: Dynamic menus [message #327133 is a reply to message #327076] |
Fri, 11 April 2008 09:17 |
Eclipse User |
|
|
|
Originally posted by: matthieucguard-ikariam.yahoo.fr
Thanks a lot for your help.
The problem came from the name of the parameter that was false.
Paul Webster wrote:
> A command definition can specify the command takes a parameter.
> showView is like that, you can execute the showView command with an ID.
> A keybinding or org.eclipse.ui.menus command can specify a parameter to
> execute with ... for example ALT+SHIFT+Q C is showView(id=Console)
> (pseudo-code).
> parameters have no impact on the enabled/disable state of the command,
> however.
> How are you creating your "dynamic menu"? How are you instantiating a
> command with a parameter?
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.02662 seconds