Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » RadioStateManager cannot register state
RadioStateManager cannot register state [message #494879] Tue, 03 November 2009 03:40 Go to next message
Eclipse UserFriend
Originally posted by: gemaspecial.yahoo.com.hk

This is a multi-part message in MIME format.

------=_NextPart_000_001E_01CA5C7A.6AC94020
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable

I have got a button with four drop-down radio commands which shares a =
single state. The state is however never saved.

Tracing into the source and find that =
RadioState.RadioStateManager#registerState(String, RadioState) does the =
followings:

1. check the map
2. create a radio group if not found
3. put the state to be saved into the group

but it does NOT add the group to the hashmap!!!



Could this be a bug?


Thanks

Hei
------=_NextPart_000_001E_01CA5C7A.6AC94020
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2>I have got a button with four drop-down radio =
commands which=20
shares a single state.&nbsp; The state is however never =
saved.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Tracing into the source and find that=20
RadioState.RadioStateManager#registerState(String, RadioState) does the=20
followings:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>1. check the map</FONT></DIV>
<DIV><FONT size=3D2>2. create a radio group if not found</FONT></DIV>
<DIV><FONT size=3D2>3.&nbsp;put the state to be saved into the =
group</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><U>but it does NOT add the group to the=20
hashmap!!!</U></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Could this be a bug?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Hei</FONT></DIV></BODY></HTML>

------=_NextPart_000_001E_01CA5C7A.6AC94020--
Re: RadioStateManager cannot register state [message #494887 is a reply to message #494879] Tue, 03 November 2009 05:37 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Leung Wang Hei wrote:
> I have got a button with four drop-down radio commands which shares a
> single state. The state is however never saved.

I guess you are probably missing the command state parameter in the
contribution. Check these links on how to contribute a radio state button:

http://wiki.eclipse.org/Menu_Contributions/Radio_Button_Comm and
http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Re: RadioStateManager cannot register state [message #494889 is a reply to message #494887] Tue, 03 November 2009 06:24 Go to previous message
Eclipse UserFriend
Originally posted by: gemaspecial.yahoo.com.hk

Ya, just figure out it is a feature in 3.5. I am still on 3.4. Thanks for
everybody.


"Prakash G.R." <grprakash@gmail.com> wrote in message
news:hcofhv$ul5$1@build.eclipse.org...
> Leung Wang Hei wrote:
>> I have got a button with four drop-down radio commands which shares a
>> single state. The state is however never saved.
>
> I guess you are probably missing the command state parameter in the
> contribution. Check these links on how to contribute a radio state button:
>
> http://wiki.eclipse.org/Menu_Contributions/Radio_Button_Comm and
> http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html
>
> - Prakash
>
> Platform UI Team, IBM
> http://blog.eclipse-tips.com
Previous Topic:Platform hangs on adding dependency to plugin project - 1 files [1/2]
Next Topic:Ant script to exoprt eclipse project
Goto Forum:
  


Current Time: Thu Apr 25 02:32:33 GMT 2024

Powered by FUDForum. Page generated in 0.03145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top