Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » What is difference between parameters defined for Commands and Menu Contribs(What is difference between parameters defined for Commands and Menu Contribs)
What is difference between parameters defined for Commands and Menu Contribs [message #645984] Tue, 21 December 2010 08:25 Go to next message
Saurabh Mising name is currently offline Saurabh Mising name
Messages: 21
Registered: October 2010
Junior Member
I can see that parameters can be defined for Commands defined using the Commands extension point. I can not define a value for these command parameters.

I can also define parameters under the Command element in the menus extension point when defining menu contributions. I can define a value for the parameter here.

Are the command parameters in Command different from parameters in menu contributions? If they are different how are they different?

Thanks
Re: What is difference between parameters defined for Commands and Menu Contribs [message #647164 is a reply to message #645984] Tue, 04 January 2011 14:52 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

When you define a command, you define parameters that can be fed into
the command. ex: viewId

When you define a menu item or keybinding, you can specify the parameter
value to be used when that menu item or keybinding is executed.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Splash screen login
Next Topic:Programmatically add Buttons to Toolbar during runtime
Goto Forum:
  


Current Time: Wed Aug 20 12:40:29 EDT 2014

Powered by FUDForum. Page generated in 0.11757 seconds