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;
}
Aggregations