Radio actions in MenuManager [message #65373] |
Tue, 11 December 2007 06:33  |
Eclipse User |
|
|
|
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());
}
});
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04171 seconds