Accessing Tool window's data from action group

 

I have a tool window plugin that basically contains a List to which I can add / remove elements.

Separately I'd like to add an actiongroup that is able to access the current model of this list and the data in it so it can dynamically add actions to the group based on the content of the list.

How can I access this data from my action group class ?

 

Thanks !

0
1 comment
Official comment

You can make your component implement DataProvider, create a data key for the information you need, query that data key in your actions and return the corresponding information from getData method.

Please sign in to leave a comment.