Listener to capture project run event
Answered
Hello guys,
I'm developing a tool window plugin to monitor and display log entries from a master log file. Is there any way i can capture a project execution event? I need to start monitoring the log file once a project is run, and stop monitoring once completed. My current implementation contains an infinite while loop that continuously monitors the log file. This takes a hit on the performance so I need to make improvements.
Please sign in to leave a comment.
Nevermind found a solution but I don't completely understand the code. Can someone explain what triggers the contentSelected and contentRemoved methods?
Finally! I found something that works but Intellij says the addRunContentListener method is deprecated. grrrr...Is there any workaround?
EDIT: found this suggestion in the previous source code @deprecated Use {@link RunContentManager#TOPIC} instead. I don't get it though
@...
I want to show text of Run window in a DialogMessage
How to achieve that pleaase ?