MenuBar is not displayed check image. [message #592728] |
Tue, 08 April 2003 23:15 |
Narushima Hironori Messages: 17 Registered: July 2009 |
Junior Member |
|
|
MenuBar is not displayed check image.
(e,g, "Window" -> "Lock the Toolbar" is to display check image.)
But, I can't create to display check button in menu.
how to create checkbox button in menu bar?
--
public class XXXAction extends Action {
public void run() {
setChecked(!isChecked);
}
}
class XXXContributor extends BasicTextEditorActionContributor {
MenuManager manager;
public XXXContributor() {
super();
manager = new MenuManager("XXX");
manager.add(new XXXAction() );
}
public void contributeToMenu(IMenuManager menuManager) {
super.contributeToMenu(menuManager);
menuManager.insertAfter(IWorkbenchActionConstants.M_EDIT, manager);
}
}
--
but don't display check image.
--
Narushima Hironori mailto:narushima_to@ybb.ne.jp
|
|
|
Powered by
FUDForum. Page generated in 0.05816 seconds