how can i access the content of toolwindow "RUN"

i want to get information from the toolwindow "RUN", i want to save the run result , for example the output , the Statistics,

how can i do it ?

thanks

5 comments
Comment actions Permalink

You can use RunContentListener to get the console contents.
Register using ExecutionManager.getInstance(project).getContentManager().addRunContentListener()

0
Comment actions Permalink

thanks
but how to use this?
addRunContentListener has a  parameter :

void addRunContentListener(RunContentListener listener)



but how can I create a RunContentListener?

is there any example?

0
Comment actions Permalink

Just create a class implementing the interface
There is no clean API for what you get in the descriptor AFAIK - you will need to use the impl classes that are not documented and can change frequently.

MAybe someone from JetBrains can post a better solution ;-)

0
Comment actions Permalink

oh , i see , i will try , thank you

0
Comment actions Permalink

it seems no api for getting information of the "RUN"  

RunContentDescriptor is so common

0

Please sign in to leave a comment.