Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Radio actions in MenuManager
Radio actions in MenuManager [message #65373] Tue, 11 December 2007 06:33 Go to next message
Eclipse UserFriend
Originally posted by: leeper.poczta.fm

Hi
I've tried to make some radio and checkbox actions in an ActionBar.
Actions show and work fine (the texts) but I cannot see the radio/checkbox
icon. Maybe the way I'm doing this is not right (see code below)?

Pli

IMenuManager rootMenuManager =
getViewSite().getActionBars().getMenuManager();
rootMenuManager.setRemoveAllWhenShown(false);
rootMenuManager.add(new Action("radio1", Action.AS_CHECK_BOX) {
public void run () {
setChecked(! isChecked());
}
});
rootMenuManager.add(new Action("radio2", Action.AS_CHECK_BOX) {
public void run () {
setChecked(! isChecked());
}
});
Re: Radio actions in MenuManager [message #65393 is a reply to message #65373] Tue, 11 December 2007 06:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pli,

we just encountered the same issue. This is already fixed in CVS and
should also be fixed in the current 1.0.1 release.

Greets
Benny

Pli wrote:
> Hi
> I've tried to make some radio and checkbox actions in an ActionBar.
> Actions show and work fine (the texts) but I cannot see the
> radio/checkbox icon. Maybe the way I'm doing this is not right (see code
> below)?
> Pli
>
> IMenuManager rootMenuManager =
> getViewSite().getActionBars().getMenuManager();
> rootMenuManager.setRemoveAllWhenShown(false);
> rootMenuManager.add(new Action("radio1", Action.AS_CHECK_BOX) {
> public void run () {
> setChecked(! isChecked());
> }
> });
> rootMenuManager.add(new Action("radio2", Action.AS_CHECK_BOX) {
> public void run () {
> setChecked(! isChecked());
> }
> });
>
>
Re: Radio actions in MenuManager [message #65415 is a reply to message #65393] Tue, 11 December 2007 06:50 Go to previous message
Eclipse UserFriend
Originally posted by: leeper.poczta.fm

Right! I just installed 1.0.1 and it works fine!
Thanks
Pli
Previous Topic:StackOverflowError
Next Topic:custom javascript code in RAP
Goto Forum:
  


Current Time: Mon May 05 23:47:37 EDT 2025

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

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

Back to the top