Featured post
eclipse - Whats the difference between Command Parameters and Menu Contribution Parameters -
i can see parameters can defined commands defined using commands extension point. can not define value these command parameters.
i can define parameters under command element in menus extension point when defining menu contributions. can define value parameter here.
are command parameters in command different parameters in menu contributions? if different how different?
the plugin org.eclipse.ui.command, let declare parameters commands. when add parameter command, have set , id, type , list of possible values parameter implementing iparametervalues.
after that, can add command menu item parameters , values.
for example, imagine have command id org.rcp.commands.new. , it's defined parameter name "type" , posible values (file, project , folder). you'll able add 3 menu item commandid = "org.rcp.commands.new" each parameter
sample of plugin.xml
...
find more info in link: http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html
- Get link
- X
- Other Apps
Comments
Post a Comment