use of com.intellij.xdebugger.impl.frame.XWatchesView in project intellij-community by JetBrains.
the class XWatchesTreeActionBase method actionPerformed.
@Override
public void actionPerformed(AnActionEvent e) {
final XDebuggerTree tree = XDebuggerTree.getTree(e);
XWatchesView watchesView = e.getData(XWatchesView.DATA_KEY);
if (tree != null && watchesView != null) {
perform(e, tree, watchesView);
}
}
use of com.intellij.xdebugger.impl.frame.XWatchesView in project intellij-community by JetBrains.
the class XWatchesTreeActionBase method update.
public void update(final AnActionEvent e) {
final XDebuggerTree tree = XDebuggerTree.getTree(e);
XWatchesView watchesView = e.getData(XWatchesView.DATA_KEY);
boolean enabled = tree != null && watchesView != null && isEnabled(e, tree);
e.getPresentation().setEnabled(enabled);
}
use of com.intellij.xdebugger.impl.frame.XWatchesView 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