How to trigger "CloseOtherViews" action programmatically

Hello! I am working on a plugin in which I would like to "Close Others" programmatically--the same action as demonstrated in the image below. When that button is clicked, all other tab windows in the editor are closed. 

 

I've tried triggering the action from an another action . . . 

but it does not work because the event does not have a ViewContext. 

Thank you for any guidance!

 

0

Please sign in to leave a comment.