Search in sources :

Example 1 with XReferrersProvider

use of com.intellij.xdebugger.frame.XReferrersProvider 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)

Aggregations

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