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