Using toggle button in toolbar

Hi,

Is it possible to use a toggle button (instead of normal one) in toolbar, associated to a action? Could I do it via plugin.xml?

Thanks,

Andre

2 comments

Hello Andre,

Is it possible to use a toggle button (instead of normal one) in
toolbar, associated to a action? Could I do it via plugin.xml?


Yes. Your action class should extend ToggleAction in order for this to work.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.