Search in sources :

Example 1 with XWatchesView

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);
    }
}
Also used : XWatchesView(com.intellij.xdebugger.impl.frame.XWatchesView) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)

Example 2 with XWatchesView

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);
}
Also used : XWatchesView(com.intellij.xdebugger.impl.frame.XWatchesView) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)

Example 3 with XWatchesView

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

XWatchesView (com.intellij.xdebugger.impl.frame.XWatchesView)3 XDebuggerTree (com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)2 Project (com.intellij.openapi.project.Project)1 XDebugSession (com.intellij.xdebugger.XDebugSession)1 XDebugSessionImpl (com.intellij.xdebugger.impl.XDebugSessionImpl)1 XDebugSessionTab (com.intellij.xdebugger.impl.ui.XDebugSessionTab)1