Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with radio button commands (Problem with radio button commands )
Problem with radio button commands [message #724741] Mon, 12 September 2011 23:40
Srirekha P K is currently offline Srirekha P K
Messages: 1
Registered: July 2011
Junior Member
I am trying to place radio button commands in a popup menu within a view using the command framework. When I implemented the same I got some problems. The problem is that the radio button is not getting displayed when I select a menu item. But the popup menus are displayed and the states are changing according to the selection. The same commands are working with menus very well. Here's the portion of code in plugin.xml :




<extension

point="org.eclipse.ui.commands">

<command

defaultHandler="Radiosample"

id="commandframework.command1"

name="radiotest">

<commandParameter

id="org.eclipse.ui.commands.radioStateParameter1"

name="State"

optional="false">

</commandParameter>

<state

class="org.eclipse.jface.commands.RadioState"

id="radio">

</state>

</command>

</extension>





<extension

point="org.eclipse.ui.menus">

<menuContribution

allPopups="false"

locationURI="popup:commandframework.views.SampleView">

<menu

id="commandframework.samplemenu"

label="SampleMenu">



<command

commandId="commandframework.command1"

style="radio">

<parameter

name="org.eclipse.ui.commands.radioStateParameter1"

value="left">

</parameter>

</command>


Previous Topic:automatic check out with Peforce plug-in (Java EE)
Next Topic:External javascript in RAP
Goto Forum:
  


Current Time: Tue May 21 10:52:14 EDT 2013

Powered by FUDForum. Page generated in 0.01698 seconds