[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Context Menu Toggle Command

See some of the examples for toggle, checked, and radio commands in http://wiki.eclipse.org/Menu_Contributions#Example_Matrix

You can update your menus checked state or label using updateElement(UIElement element, Map parameters) from IElementUpdater in your handler.

It doesn't support setting the state declaratively yet, https://bugs.eclipse.org/bugs/show_bug.cgi?id=221980

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm