Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Radio actions in MenuManager
Radio actions in MenuManager [message #65373] Tue, 11 December 2007 11: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 11:33 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
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 11: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: Thu Jul 18 03:31:26 GMT 2024

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

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

Back to the top