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