Change menu item toggle based on current editor [message #1734741] |
Fri, 10 June 2016 17:28  |
Eclipse User |
|
|
|
I would like to place an item on the menu that toggles display behavior in an editor for an underlying document. (E.g. shapes based on roles vs. edge degrees). The document is responsible to persist the value, and the menu item's toggle state should reflect the saved value in the document.
I can place the items on the menu via the commands and menus extension points. By activating the style=toggle, I can activate whether the menu table state is displayed.
However the State mechanism needs to be tied into the current editor, not a Registry persistent state. Are there examples where a command state is provided by the currently active editor?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.34020 seconds