Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [Helios] Dynamic item in pulldown button(How to adddynamic item in a toolbar pulldown button)
[Helios] Dynamic item in pulldown button [message #645948] Tue, 21 December 2010 04:52
FB Missing name is currently offline FB Missing name
Messages: 7
Registered: October 2010
Junior Member
Hi,

I have a pulldown button type in a toolbar, i have already some static parameter, it works, but i need now to have dynamic parameter, i tried to create a class which implements IParameterValues and change plugin.xml like that :

<command id="CheckReboot.commands.runCommand" name="RunCommand">
<-! ParameterValues2 : classe which implements IParameterValues -->
<commandParameter id="loopnumber" name="loopnumber" optional="true" values="checkturretrcp.ParameterValues2">
</commandParameter>
</command>

and the menu contribution :

<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions ">
<toolbar id="CheckReboot.toolbars.sampleToolbar">
<command commandId="CheckReboot.commands.runCommand"
icon="icons/24x24/Player Play.png" id="CheckReboot.commands.runCommand" style="pulldown" tooltip="Launch">
</command>
</toolbar>
</menuContribution>

but it doesn't works, is there a bug in my conf or i miss something ?
Thanks in advance.

Francois
Previous Topic:Filter help scope of information center
Next Topic:Key Bindings in Eclipse FormEditor
Goto Forum:
  


Current Time: Wed Jul 23 18:19:26 EDT 2014

Powered by FUDForum. Page generated in 0.01894 seconds