How to set the selected state of WorkSpaceToolbarPlugin

The workspace toolbar plugins are unfortunately currently only a simple ‘click’ mechanism, so it does not support states.