How to navigate to another toolWindow in the Run/Debug console?

Answered

Hi, I develop a plugin filter the console log and output special content to another toolWindow.

And I want to add navigate from console to my toolwindow. and position the corresponding line.

How to implement HyperlinkInfo code?

Is it can come true?

return new Result(0, 50, new HyperlinkInfo() {
@Override
public void navigate(Project project) {
//navigate to mytoolwindow and position the line.
}
});
0
6 comments
Avatar
Permanently deleted user

I'd be interested in your technique for filtering console log output. Would you be willing to share that?

 

0
Avatar
Permanently deleted user

I am also intrested in file, but is it worth for me.

0

Kook,

ToolWindow instance has a ToolWindow.acivate(Runnable) available, so if you have access to its instance, you can easily show your TW.

0

Hi, Sparky, I filter the sql log from the console and output to another toolWindows.

 

Hi, Jakub Chrzanowski
Thanks, I can activate my toolWindows, But How can I focus on the corresponding line?

0

I don't know about which line you think since TW can implement any UI.

0

I output log to another ConsoleView TW, and Is it can be focus specified line?

0

Please sign in to leave a comment.