[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Command Parameter and dynamic menu

Paul Webster wrote:
it's probably:
params.put("ID", Long.toString(u.getId()));

You want the id of the commandParameter (and ID is technically its name)

PW


Hi Paul,

thanks a lot! It seems to work (doing a quick evaluation).
Now that I see it, it totally makes sense - silly me!

Anyways, the tooltip for the CommandContributionItemParameter constructor only talks about parameter "names and values".

Also, the tutorial about commands by Prakash and the ones about menu contribution seem to use the "name" as the first argument in the map. It's either misleading/wrong or a diffrent usecase. But actually i don't see the difference.

Thanks, again.

Till