How to perform an action after running or after errors?

Hello,

I'm trying to make a plugin where after the user runs their program, a Jbutton gets updated on a tool window with a URL.

I've got the action working in a dropdown box on right click, but I want it to happen automatically after the user runs their program. How do I register the action to do this and also how do I register it so the action runs after the project's errors get updated, since the updated URL depends on if there are errors in the project and what those errors are. Thanks. 

0
1 comment
Avatar
Permanently deleted user

Anyone? maybe there's a way to register the action to run a few seconds after it's actually called? That way I could attach it to the run button and it would run a few seconds after the button was pressed.

My plugin reads error messages and generates a google search query depending on those messages. The URL to the first result is updated to a swing button.

Thanks.

0

Please sign in to leave a comment.