Search in sources :

Example 11 with XDebugSessionImpl

use of com.intellij.xdebugger.impl.XDebugSessionImpl in project intellij-community by JetBrains.

the class XAddToWatchesAction method getWatchesView.

private static XWatchesView getWatchesView(@NotNull AnActionEvent e) {
    XWatchesView view = e.getData(XWatchesView.DATA_KEY);
    Project project = e.getProject();
    if (view == null && project != null) {
        XDebugSession session = XDebuggerManager.getInstance(project).getCurrentSession();
        if (session != null) {
            XDebugSessionTab tab = ((XDebugSessionImpl) session).getSessionTab();
            if (tab != null) {
                return tab.getWatchesView();
            }
        }
    }
    return view;
}
Also used : Project(com.intellij.openapi.project.Project) XDebugSession(com.intellij.xdebugger.XDebugSession) XDebugSessionTab(com.intellij.xdebugger.impl.ui.XDebugSessionTab) XWatchesView(com.intellij.xdebugger.impl.frame.XWatchesView) XDebugSessionImpl(com.intellij.xdebugger.impl.XDebugSessionImpl)

Aggregations

XDebugSessionImpl (com.intellij.xdebugger.impl.XDebugSessionImpl)11 XDebugSession (com.intellij.xdebugger.XDebugSession)9 XDebugSessionTab (com.intellij.xdebugger.impl.ui.XDebugSessionTab)4 XExpression (com.intellij.xdebugger.XExpression)2 ValueMarkup (com.intellij.xdebugger.impl.ui.tree.ValueMarkup)2 XValueNodeImpl (com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl)2 NotNull (org.jetbrains.annotations.NotNull)2 DebugEnvironment (com.intellij.debugger.DebugEnvironment)1 DefaultDebugEnvironment (com.intellij.debugger.DefaultDebugEnvironment)1 DebugProcessImpl (com.intellij.debugger.engine.DebugProcessImpl)1 EnumerationChildrenRenderer (com.intellij.debugger.ui.tree.render.EnumerationChildrenRenderer)1 DefaultExecutionResult (com.intellij.execution.DefaultExecutionResult)1 ExecutionResult (com.intellij.execution.ExecutionResult)1 ExecutionEnvironment (com.intellij.execution.runners.ExecutionEnvironment)1 ExecutionConsole (com.intellij.execution.ui.ExecutionConsole)1 RunnerLayoutUi (com.intellij.execution.ui.RunnerLayoutUi)1 NotificationListener (com.intellij.notification.NotificationListener)1 Document (com.intellij.openapi.editor.Document)1 LineExtensionInfo (com.intellij.openapi.editor.LineExtensionInfo)1 TextAttributes (com.intellij.openapi.editor.markup.TextAttributes)1