[Helios] Dynamic item in pulldown button [message #645948] |
Tue, 21 December 2010 09:52 |
FB Mising name Messages: 8 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
|
|
|
Powered by
FUDForum. Page generated in 0.02815 seconds