Search in sources :

Example 1 with XInspectDialog

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

the class ShowReferringObjectsAction method perform.

@Override
protected void perform(XValueNodeImpl node, @NotNull String nodeName, AnActionEvent e) {
    XReferrersProvider referrersProvider = node.getValueContainer().getReferrersProvider();
    if (referrersProvider != null) {
        XDebuggerTree tree = node.getTree();
        XDebugSession session = XDebuggerManager.getInstance(tree.getProject()).getCurrentSession();
        if (session != null) {
            XInspectDialog dialog = new XInspectDialog(tree.getProject(), tree.getEditorsProvider(), tree.getSourcePosition(), nodeName, referrersProvider.getReferringObjectsValue(), tree.getValueMarkers(), session, false);
            dialog.setTitle(XDebuggerBundle.message("showReferring.dialog.title", nodeName));
            dialog.show();
        }
    }
}
Also used : XDebugSession(com.intellij.xdebugger.XDebugSession) XInspectDialog(com.intellij.xdebugger.impl.ui.tree.XInspectDialog) XReferrersProvider(com.intellij.xdebugger.frame.XReferrersProvider) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)

Example 2 with XInspectDialog

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

the class XInspectAction method perform.

@Override
protected void perform(XValueNodeImpl node, @NotNull final String nodeName, AnActionEvent e) {
    XDebuggerTree tree = node.getTree();
    XValue value = node.getValueContainer();
    XInspectDialog dialog = new XInspectDialog(tree.getProject(), tree.getEditorsProvider(), tree.getSourcePosition(), nodeName, value, tree.getValueMarkers(), XDebuggerManager.getInstance(tree.getProject()).getCurrentSession(), true);
    dialog.show();
}
Also used : XInspectDialog(com.intellij.xdebugger.impl.ui.tree.XInspectDialog) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree) XValue(com.intellij.xdebugger.frame.XValue)

Aggregations

XDebuggerTree (com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)2 XInspectDialog (com.intellij.xdebugger.impl.ui.tree.XInspectDialog)2 XDebugSession (com.intellij.xdebugger.XDebugSession)1 XReferrersProvider (com.intellij.xdebugger.frame.XReferrersProvider)1 XValue (com.intellij.xdebugger.frame.XValue)1