Checkbox menu item for action

Hello all,


Does IDEA provide a mechanism for AnAction defined in plugin.xml to be displayed as a JCheckBoxMenuItem?

See the example below from the View menu:
checkboxmenuitem.png

3 comments

Don't you just hate it when you find the solution minutes after posting on a forum?? Extending ToggleAction will do the job.

0

Correct.
BTW Open API and Plugin Development forum suits this kind of questions better.

0

Ofcourse, that's where it belongs. I have made more posts there. I have missed that somehow. Feel free to move it.

0

Please sign in to leave a comment.