How to get ConsoleView in debug console

I hope use ConsoleActionsPostProcessor to add my action, so how to get toolwindow "Debug"'s ConsoleView?

2 comments
Comment actions Permalink

I find the solution with following:

 
dbg.activate(new Runnable() {
    @Override
    void
run() {
        ToolWindowManagerImpl twm = ToolWindowManagerImpl.getInstance(pj)
        ConsoleViewImpl cv = e.getData(DataKeys.CONSOLE_VIEW)
        cv
    }
})


//dbg is Debug ToolWindow

0
Comment actions Permalink

but when !dbg.active, I can't get consoleview, I still need a way to get consoleview in !dbg.active

0

Please sign in to leave a comment.