Search in sources :

Example 1 with XDebugSessionData

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

the class XWatchesViewImpl method updateSessionData.

public void updateSessionData() {
    List<XExpression> watchExpressions = ContainerUtil.newArrayList();
    List<? extends WatchNode> children = myRootNode.getWatchChildren();
    for (WatchNode child : children) {
        watchExpressions.add(child.getExpression());
    }
    XDebugSession session = getSession(getTree());
    XExpression[] expressions = watchExpressions.toArray(new XExpression[watchExpressions.size()]);
    if (session != null) {
        ((XDebugSessionImpl) session).setWatchExpressions(expressions);
    } else {
        XDebugSessionData data = getData(XDebugSessionData.DATA_KEY, getTree());
        if (data != null) {
            data.setWatchExpressions(expressions);
        }
    }
}
Also used : XDebugSession(com.intellij.xdebugger.XDebugSession) XDebugSessionData(com.intellij.xdebugger.impl.ui.XDebugSessionData) XExpression(com.intellij.xdebugger.XExpression) XDebugSessionImpl(com.intellij.xdebugger.impl.XDebugSessionImpl)

Aggregations

XDebugSession (com.intellij.xdebugger.XDebugSession)1 XExpression (com.intellij.xdebugger.XExpression)1 XDebugSessionImpl (com.intellij.xdebugger.impl.XDebugSessionImpl)1 XDebugSessionData (com.intellij.xdebugger.impl.ui.XDebugSessionData)1