I've read two answers to the question "How do I disable an action" in this forum. Both tell me that I have to do it in the update method of the action.
In my plugin I have a table and I want to disable/enable an action depending on what row is selected in the table. I've registered a listener on my table that gets notified when the selection changes.
What do I do now? Can I somehow trigger update() on the said action? How do I tell the action whether it should enable or disable itself?