Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
295,000 | Object (@NotNull @NonNls String dataId) { if (XWatchesView.DATA_KEY.is(dataId)) { return this; } return super.getData(dataId); } | getData |
295,001 | void (List<? extends XDebuggerTreeNode> nodes) { ThreadingAssertions.assertEventDispatchThread(); List<? extends XDebuggerTreeNode> ordinaryWatches = ContainerUtil.filter(nodes, node -> !(node instanceof InlineWatchNode)); List<? extends XDebuggerTreeNode> inlineWatches = ContainerUtil.filter(nodes, node -> node instanceof InlineWatchNode); if (!inlineWatches.isEmpty()) { removeInlineNodes(inlineWatches, true); } if (ordinaryWatches.isEmpty()) return; List<? extends WatchNode> children = myRootNode.getWatchChildren(); int minIndex = Integer.MAX_VALUE; List<XDebuggerTreeNode> toRemove = new ArrayList<>(); for (XDebuggerTreeNode node : ordinaryWatches) { int index = children.indexOf(node); if (index != -1) { toRemove.add(node); minIndex = Math.min(minIndex, index); } } myRootNode.removeChildren(toRemove); List<? extends WatchNode> newChildren = myRootNode.getWatchChildren(); if (!newChildren.isEmpty()) { WatchNode node = newChildren.get(Math.min(minIndex, newChildren.size() - 1)); TreeUtil.selectNode(getTree(), node); } updateSessionData(); } | removeWatches |
295,002 | void () { ThreadingAssertions.assertEventDispatchThread(); if (inlineWatchesEnabled) { List<? extends InlineWatchNode> children = ((InlineWatchesRootNode)myRootNode).getInlineWatchChildren(); if (!children.isEmpty()) { //noinspection unchecked removeInlineNodes((List<? extends XDebuggerTreeNode>)children, true); } } myRootNode.removeAllChildren(); updateSessionData(); } | removeAllWatches |
295,003 | void (WatchNode node) { myRootNode.moveUp(node); updateSessionData(); } | moveWatchUp |
295,004 | void (WatchNode node) { myRootNode.moveDown(node); updateSessionData(); } | moveWatchDown |
295,005 | void () { List<XExpression> watchExpressions = myRootNode.getWatchExpressions(); XDebugSession session = getSession(getTree()); XDebugSessionData data = (session != null) ? ((XDebugSessionImpl)session).getSessionData() : getData(XDebugSessionData.DATA_KEY, getTree()); if (data != null) { data.setWatchExpressions(watchExpressions); getWatchesManager().setWatches(data.getConfigurationName(), watchExpressions); } } | updateSessionData |
295,006 | boolean (final DnDEvent aEvent) { Object object = aEvent.getAttachedObject(); boolean possible = false; if (object instanceof XValueNodeImpl[]) { possible = true; // do not add new watch if node is dragged to itself if (((XValueNodeImpl[])object).length == 1) { Point point = aEvent.getPoint(); XDebuggerTree tree = getTree(); TreePath path = tree.getClosestPathForLocation(point.x, point.y); if (path != null && path.getLastPathComponent() == ((XValueNodeImpl[])object)[0]) { // the same item is under pointer, filter out place below the tree Rectangle pathBounds = tree.getPathBounds(path); possible = pathBounds != null && pathBounds.y + pathBounds.height < point.y; } } } else if (object instanceof EventInfo) { possible = ((EventInfo)object).getTextForFlavor(DataFlavor.stringFlavor) != null; } aEvent.setDropPossible(possible, XDebuggerBundle.message("xdebugger.drop.text.add.to.watches")); return true; } | update |
295,007 | void (DnDEvent aEvent) { Object object = aEvent.getAttachedObject(); if (object instanceof XValueNodeImpl[]) { for (XValueNodeImpl node : (XValueNodeImpl[])object) { DebuggerUIUtil.addToWatches(this, node); } } else if (object instanceof EventInfo) { String text = ((EventInfo)object).getTextForFlavor(DataFlavor.stringFlavor); if (text != null) { addWatchExpression(XExpressionImpl.fromText(text), -1, false); } } } | drop |
295,008 | void () { if (!isShown()) return; super.cancelEditing(); int index = myRootNode.getIndex(myNode); if (myOldNode == null && index != -1) { myRootNode.removeChildNode(myNode); } TreeUtil.selectNode(myTree, myNode); } | cancelEditing |
295,009 | void () { XExpression expression = getExpression(); super.doOKAction(); int index = myRootNode.removeChildNode(myNode); XDebuggerWatchesManager watchesManager = null; if (myNode instanceof InlineWatchNodeImpl) { InlineWatch inlineWatch = ((InlineWatchNodeImpl)myNode).getWatch(); watchesManager = ((XDebuggerManagerImpl)XDebuggerManager.getInstance(getProject())).getWatchesManager(); watchesManager.inlineWatchesRemoved(Collections.singletonList(inlineWatch), (XInlineWatchesView)myWatchesView); } if (!XDebuggerUtilImpl.isEmptyExpression(expression) && index != -1) { if (myNode instanceof InlineWatchNodeImpl) { watchesManager.addInlineWatchExpression(expression, index, ((InlineWatchNodeImpl)myNode).getPosition(), false); } else { myWatchesView.addWatchExpression(expression, index, false); } } TreeUtil.selectNode(myTree, myNode); } | doOKAction |
295,010 | Rectangle () { Rectangle bounds = super.getEditorBounds(); if (bounds == null) { return null; } int afterIconX = getAfterIconX(); bounds.x += afterIconX; bounds.width -= afterIconX; return bounds; } | getEditorBounds |
295,011 | boolean (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(e.getData(XDebugSession.DATA_KEY) != null); XDebugSessionTab tab = e.getData(XDebugSessionTab.TAB_KEY); return tab == null || tab.isWatchesInVariables(); } | isSelected |
295,012 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
295,013 | void (@NotNull AnActionEvent e, boolean state) { XDebugSessionTab tab = e.getData(XDebugSessionTab.TAB_KEY); if (tab != null) { tab.setWatchesInVariables(!tab.isWatchesInVariables()); } } | setSelected |
295,014 | void (@NotNull AnActionEvent e) { XWatchesView view = DebuggerUIUtil.getWatchesView(e); if (view instanceof XVariablesViewBase) { XDebuggerTreeNode root = ((XVariablesViewBase)view).getTree().getRoot(); if (root instanceof WatchesRootNode) { XDebugSession session = DebuggerUIUtil.getSession(e); if (session instanceof XDebugSessionImpl) { XDebugSessionTab.showWatchesView((XDebugSessionImpl)session); } ((WatchesRootNode)root).addNewWatch(); } } } | actionPerformed |
295,015 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(DebuggerUIUtil.getSession(e) != null && DebuggerUIUtil.getWatchesView(e) != null); } | update |
295,016 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,017 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,018 | boolean (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree) { List<? extends WatchNodeImpl> nodes = getSelectedNodes(tree, WatchNodeImpl.class); if (nodes.size() == 1) { XDebuggerTreeNode root = tree.getRoot(); if (root instanceof WatchesRootNode rootNode) { int size = rootNode.getWatchChildren().size() - 1 + rootNode.headerNodesCount(); return root.getIndex(nodes.get(0)) < size; } } return false; } | isEnabled |
295,019 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { if (watchesView instanceof XWatchesViewImpl) { ((XWatchesViewImpl)watchesView).moveWatchDown(ContainerUtil.getFirstItem(getSelectedNodes(tree, WatchNodeImpl.class))); } } | perform |
295,020 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,021 | boolean (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree) { List<? extends WatchNodeImpl> nodes = getSelectedNodes(tree, WatchNodeImpl.class); if (nodes.size() == 1) { XDebuggerTreeNode root = tree.getRoot(); if (root instanceof WatchesRootNode) { int firstWatchIndex = ((WatchesRootNode)root).headerNodesCount(); return root.getIndex(nodes.get(0)) > firstWatchIndex; } } return false; } | isEnabled |
295,022 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { if (watchesView instanceof XWatchesViewImpl) { ((XWatchesViewImpl)watchesView).moveWatchUp(ContainerUtil.getFirstItem(getSelectedNodes(tree, WatchNodeImpl.class))); } } | perform |
295,023 | boolean (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree) { return !getSelectedNodes(tree, XValueNodeImpl.class).isEmpty(); } | isEnabled |
295,024 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,025 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { XDebuggerTreeNode root = tree.getRoot(); for (XValueNodeImpl node : getSelectedNodes(tree, XValueNodeImpl.class)) { int index = node instanceof WatchNode ? root.getIndex(node) + 1 : -1; node.calculateEvaluationExpression().onSuccess(expr -> { XExpression watchExpression = expr != null ? expr : XExpressionImpl.fromText(node.getName()); if (watchExpression != null) { DebuggerUIUtil.invokeLater(() -> watchesView.addWatchExpression(watchExpression, index, true)); } }); } } | perform |
295,026 | boolean (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree) { return tree.getRoot().getChildCount() > 0; } | isEnabled |
295,027 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,028 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { watchesView.removeAllWatches(); } | perform |
295,029 | boolean () { return PropertiesComponent.getInstance().getBoolean(PROP_KEY, IS_ENABLED_BY_DEFAULT); } | isEvaluateExpressionFieldEnabled |
295,030 | void (@NotNull JComponent component) { ClientProperty.put(component, EVALUATE_EXPRESSION_FIELD, "EvaluateExpressionField"); component.setVisible(isEvaluateExpressionFieldEnabled()); } | markAsEvaluateExpressionField |
295,031 | boolean (@NotNull AnActionEvent e) { return isEvaluateExpressionFieldEnabled(); } | isSelected |
295,032 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
295,033 | void (@NotNull AnActionEvent e, boolean state) { PropertiesComponent.getInstance().setValue(PROP_KEY, state, IS_ENABLED_BY_DEFAULT); Project project = e.getProject(); if (project != null) { var window = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.DEBUG); if (window != null) { for (Content content : window.getContentManager().getContents()) { var context = DataManager.getInstance().getDataContext(content.getComponent()); findAllFieldsAndUpdateState(context, state); } } } // fallback in case of Services tool window findAllFieldsAndUpdateState(e.getDataContext(), state); } | setSelected |
295,034 | void (DataContext context, boolean state) { XWatchesView view = context.getData(XWatchesView.DATA_KEY); if (view instanceof XWatchesViewImpl) { JPanel panel = ((XWatchesViewImpl)view).getPanel(); UIUtil.uiTraverser(panel) .filter(c -> c instanceof JComponent && ClientProperty.get(c, EVALUATE_EXPRESSION_FIELD) != null) .forEach(c -> c.setVisible(state)); } } | findAllFieldsAndUpdateState |
295,035 | void (@NotNull AnActionEvent e) { XDebuggerTree tree = XDebuggerTree.getTree(e); boolean enabled = tree != null && !getSelectedNodes(tree, WatchNodeImpl.class).isEmpty(); if (ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace())) { e.getPresentation().setEnabled(enabled); } else { e.getPresentation().setEnabledAndVisible(enabled); } } | update |
295,036 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,037 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { List<? extends WatchNodeImpl>nodes = getSelectedNodes(tree, WatchNodeImpl.class); watchesView.removeWatches(nodes); } | perform |
295,038 | void (@NotNull 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); } | update |
295,039 | void (@NotNull AnActionEvent e) { final XDebuggerTree tree = XDebuggerTree.getTree(e); XWatchesView watchesView = e.getData(XWatchesView.DATA_KEY); if (tree != null && watchesView != null) { perform(e, tree, watchesView); } } | actionPerformed |
295,040 | boolean (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree) { return true; } | isEnabled |
295,041 | void (@NotNull final AnActionEvent e) { XDebuggerTree tree = XDebuggerTree.getTree(e); e.getPresentation().setEnabledAndVisible(tree != null && getSelectedNodes(tree, WatchNodeImpl.class).size() == 1); } | update |
295,042 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,043 | void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { List<? extends WatchNodeImpl> watchNodes = getSelectedNodes(tree, WatchNodeImpl.class); if (watchNodes.size() != 1) return; WatchNodeImpl node = watchNodes.get(0); XDebuggerTreeNode root = tree.getRoot(); if (root instanceof WatchesRootNode) { ((WatchesRootNode)root).editWatch(node); } } | perform |
295,044 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getForceStepIntoHandler(); } | getHandler |
295,045 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getToggleTemporaryLineBreakpointHandler(); } | getHandler |
295,046 | DebuggerActionHandler (@NotNull DebuggerSupport debuggerSupport) { return debuggerSupport.getAddToWatchesActionHandler(); } | getHandler |
295,047 | void (@NotNull AnActionEvent event) { if (XDebuggerTreeActionBase.getSelectedNode(event.getDataContext()) != null) { Holder.TREE_ACTION.update(event); } else { super.update(event); } } | update |
295,048 | void (@NotNull AnActionEvent event) { if (XDebuggerTreeActionBase.getSelectedNode(event.getDataContext()) != null) { Holder.TREE_ACTION.actionPerformed(event); } else { super.actionPerformed(event); } } | actionPerformed |
295,049 | boolean (AnActionEvent e) { Project project = e.getProject(); if (project == null) return false; XDebugSessionImpl session = (XDebugSessionImpl)DebuggerUIUtil.getSession(e); if (session != null && !session.isStopped()) { return !session.isReadOnly() && session.isPaused(); } // disable visual representation but leave the shortcut action enabled return e.getInputEvent() instanceof KeyEvent; } | isEnabled |
295,050 | boolean (AnActionEvent event) { if (!PauseAction.isPauseResumeMerged()) { return super.isHidden(event); } return super.isHidden(event) || !isEnabled(event); } | isHidden |
295,051 | void (@NotNull AnActionEvent e) { if (!performWithHandler(e)) { Project project = getEventProject(e); if (project != null && !DumbService.isDumb(project)) { new ChooseDebugConfigurationPopupAction().actionPerformed(e); } } } | actionPerformed |
295,052 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getResumeActionHandler(); } | getHandler |
295,053 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getStepOutHandler(); } | getHandler |
295,054 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getForceStepOverHandler(); } | getHandler |
295,055 | void (@NotNull final AnActionEvent event) { Presentation presentation = event.getPresentation(); boolean hidden = isHidden(event); if (hidden) { presentation.setEnabledAndVisible(false); return; } boolean enabled = isEnabled(event); if (myHideDisabledInPopup && ActionPlaces.isPopupPlace(event.getPlace())) { presentation.setVisible(enabled); } else { presentation.setVisible(true); } presentation.setEnabled(enabled); } | update |
295,056 | boolean (final AnActionEvent e) { Project project = e.getProject(); if (project != null && !project.isDisposed()) { return ContainerUtil.exists(DebuggerSupport.getDebuggerSupports(), support -> isEnabled(project, e, support)); } return false; } | isEnabled |
295,057 | boolean (final Project project, final AnActionEvent event, final DebuggerSupport support) { return getHandler(support).isEnabled(project, event); } | isEnabled |
295,058 | void (@NotNull final AnActionEvent e) { performWithHandler(e); XDebuggerUtilImpl.reshowInlayRunToCursor(e); } | actionPerformed |
295,059 | boolean (AnActionEvent e) { Project project = e.getProject(); if (project == null || project.isDisposed()) { return true; } for (DebuggerSupport support : DebuggerSupport.getDebuggerSupports()) { if (isEnabled(project, e, support)) { perform(project, e, support); return true; } } return false; } | performWithHandler |
295,060 | void (final Project project, final AnActionEvent e, final DebuggerSupport support) { getHandler(support).perform(project, e); } | perform |
295,061 | boolean (AnActionEvent event) { Project project = event.getProject(); if (project != null && !project.isDisposed()) { return ContainerUtil.and(DebuggerSupport.getDebuggerSupports(), support -> getHandler(support).isHidden(project, event)); } return true; } | isHidden |
295,062 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
295,063 | boolean () { return true; } | isDumbAware |
295,064 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getStepOverHandler(); } | getHandler |
295,065 | void (@NotNull AnActionEvent event) { Project project = event.getProject(); boolean enabled = false; Presentation presentation = event.getPresentation(); boolean hidden = true; if (project != null) { for (DebuggerSupport support : DebuggerSupport.getDebuggerSupports()) { MarkObjectActionHandler handler = support.getMarkObjectHandler(); hidden &= handler.isHidden(project, event); if (handler.isEnabled(project, event)) { enabled = true; String text; if (handler.isMarked(project, event)) { text = ActionsBundle.message("action.Debugger.MarkObject.unmark.text"); } else { text = ActionsBundle.message("action.Debugger.MarkObject.text"); } presentation.setText(text); break; } } } presentation.setVisible(!hidden && (!ActionPlaces.isPopupPlace(event.getPlace()) || enabled)); presentation.setEnabled(enabled); } | update |
295,066 | DebuggerActionHandler (@NotNull DebuggerSupport debuggerSupport) { return debuggerSupport.getMarkObjectHandler(); } | getHandler |
295,067 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,068 | void (Project project, JComponent component, Point whereToShow, Object breakpoint) { DebuggerUIUtil.showXBreakpointEditorBalloon(project, whereToShow, component, false, (XBreakpoint)breakpoint); } | doShowPopup |
295,069 | boolean (@NotNull Project project, AnActionEvent event) { DataContext dataContext = event.getDataContext(); Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (editor == null) return false; final Pair<GutterIconRenderer,Object> pair = XBreakpointUtil.findSelectedBreakpoint(project, editor); return pair.first != null; } | isEnabled |
295,070 | void (@NotNull AnActionEvent e) { Collection<XLineBreakpoint> breakpoints = findLineBreakpoints(e); for (XLineBreakpoint breakpoint : breakpoints) { breakpoint.setEnabled(!breakpoint.isEnabled()); } } | actionPerformed |
295,071 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(!findLineBreakpoints(e).isEmpty()); } | update |
295,072 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,073 | Set<XLineBreakpoint> (AnActionEvent e) { Project project = e.getProject(); Editor editor = e.getData(CommonDataKeys.EDITOR); if (project == null || editor == null) return Collections.emptySet(); XBreakpointManagerImpl breakpointManager = (XBreakpointManagerImpl)XDebuggerManager.getInstance(project).getBreakpointManager(); XLineBreakpointManager lineBreakpointManager = breakpointManager.getLineBreakpointManager(); Document document = editor.getDocument(); Collection<Range<Integer>> lineRanges = new ArrayList<>(); for (Caret caret : editor.getCaretModel().getAllCarets()) { lineRanges.add(new Range<>(document.getLineNumber(caret.getSelectionStart()), document.getLineNumber(caret.getSelectionEnd()))); } Collection<XLineBreakpointImpl> breakpoints = lineBreakpointManager.getDocumentBreakpoints(document); HashSet<XLineBreakpoint> res = new HashSet<>(); for (XLineBreakpointImpl breakpoint : breakpoints) { int line = breakpoint.getLine(); for (Range<Integer> range : lineRanges) { if (range.isWithin(line)) { res.add(breakpoint); } } } return res; } | findLineBreakpoints |
295,074 | boolean (@NotNull AnActionEvent e) { return XDebuggerSettingManagerImpl.getInstanceImpl().getGeneralSettings().isUnmuteOnStop(); } | isSelected |
295,075 | void (@NotNull AnActionEvent e, boolean state) { XDebuggerSettingManagerImpl.getInstanceImpl().getGeneralSettings().setUnmuteOnStop(state); } | setSelected |
295,076 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
295,077 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); Editor editor = e.getData(CommonDataKeys.EDITOR); if (project != null && editor != null) { XBreakpointManagerImpl breakpointManager = (XBreakpointManagerImpl)XDebuggerManager.getInstance(project).getBreakpointManager(); XLineBreakpointManager lineBreakpointManager = breakpointManager.getLineBreakpointManager(); lineBreakpointManager.getDocumentBreakpoints(editor.getDocument()).forEach(breakpointManager::removeBreakpoint); } } | actionPerformed |
295,078 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,079 | boolean (@NotNull AnActionEvent e) { return UISettings.getInstance().getOpenInPreviewTabIfPossible(); } | isSelected |
295,080 | void (@NotNull AnActionEvent e, boolean state) { UISettings.getInstance().setOpenInPreviewTabIfPossible(state); } | setSelected |
295,081 | boolean (final @NotNull XDebugSession session, final DataContext dataContext) { return isEnabled(session); } | isEnabled |
295,082 | boolean (XDebugSession session) { return !((XDebugSessionImpl)session).isReadOnly() && session.isSuspended(); } | isEnabled |
295,083 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
295,084 | boolean (@NotNull final AnActionEvent e) { Project project = e.getProject(); if (project != null) { for (DebuggerSupport support : DebuggerSupport.getDebuggerSupports()) { DebuggerToggleActionHandler handler = support.getMuteBreakpointsHandler(); if (handler.isEnabled(project, e)) { return handler.isSelected(project, e); } } } return false; } | isSelected |
295,085 | void (@NotNull final AnActionEvent e, final boolean state) { Project project = e.getProject(); if (project != null) { for (DebuggerSupport support : DebuggerSupport.getDebuggerSupports()) { DebuggerToggleActionHandler handler = support.getMuteBreakpointsHandler(); if (handler.isEnabled(project, e)) { handler.setSelected(project, e, state); return; } } } } | setSelected |
295,086 | void (@NotNull final AnActionEvent e) { super.update(e); Project project = e.getProject(); if (project != null) { for (DebuggerSupport support : DebuggerSupport.getDebuggerSupports()) { DebuggerToggleActionHandler handler = support.getMuteBreakpointsHandler(); if (handler.isEnabled(project, e)) { e.getPresentation().setEnabled(true); return; } } } e.getPresentation().setEnabled(false); } | update |
295,087 | boolean () { return true; } | isDumbAware |
295,088 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getStepIntoHandler(); } | getHandler |
295,089 | void (@NotNull Project project, AnActionEvent event) { DataContext dataContext = event.getDataContext(); Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (editor == null) return; final Pair<GutterIconRenderer,Object> pair = XBreakpointUtil.findSelectedBreakpoint(project, editor); Object breakpoint = pair.second; GutterIconRenderer breakpointGutterRenderer = pair.first; if (breakpointGutterRenderer == null) return; editBreakpoint(project, editor, breakpoint, breakpointGutterRenderer); } | perform |
295,090 | void (@NotNull Project project, @NotNull Editor editor, @NotNull Object breakpoint, @NotNull GutterIconRenderer breakpointGutterRenderer) { if (BreakpointsDialogFactory.getInstance(project).popupRequested(breakpoint)) { return; } EditorGutterComponentEx gutterComponent = ((EditorEx)editor).getGutterComponentEx(); Point point = gutterComponent.getCenterPoint(breakpointGutterRenderer); if (point == null) { // disabled gutter icons for example point = new Point(gutterComponent.getWidth(), editor.visualPositionToXY(editor.getCaretModel().getVisualPosition()).y + editor.getLineHeight() / 2); } doShowPopup(project, gutterComponent, point, breakpoint); } | editBreakpoint |
295,091 | void (@NotNull Project project, @NotNull JComponent parent, @NotNull Point whereToShow, @NotNull BreakpointItem breakpoint) { doShowPopup(project, parent, whereToShow, breakpoint.getBreakpoint()); } | editBreakpoint |
295,092 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project != null) { XDebuggerUtilImpl.removeAllBreakpoints(project); } } | actionPerformed |
295,093 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getEvaluateHandler(); } | getHandler |
295,094 | DebuggerActionHandler (@NotNull final DebuggerSupport debuggerSupport) { return debuggerSupport.getShowExecutionPointHandler(); } | getHandler |
295,095 | void (@NotNull AnActionEvent e) { Project project = getEventProject(e); int attachDebuggerProvidersNumber = myAttachProvidersSupplier.get().size(); boolean enabled = project != null && attachDebuggerProvidersNumber > 0; e.getPresentation().setEnabledAndVisible(enabled); } | update |
295,096 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
295,097 | void (@NotNull AnActionEvent e) { final Project project = getEventProject(e); if (project == null) return; if (Registry.is("debugger.attach.dialog.enabled")) { project.getService(AttachToProcessDialogFactory.class).showDialog( myAttachProvidersSupplier.get(), getAvailableHosts(), e.getDataContext()); return; } new Task.Backgroundable(project, XDebuggerBundle.message("xdebugger.attach.action.collectingItems"), true, PerformInBackgroundOption.DEAF) { @Override public void run(@NotNull ProgressIndicator indicator) { List<AttachItem> allItems = Collections.unmodifiableList(getTopLevelItems(indicator, project)); ApplicationManager.getApplication().invokeLater(() -> { AttachListStep step = new AttachListStep(allItems, XDebuggerBundle.message("xdebugger.attach.popup.title.default"), project); final ListPopup popup = JBPopupFactory.getInstance().createListPopup(step); final JList mainList = ((ListPopupImpl) ListPopupWrapper.getRootPopup(popup)).getList(); ListSelectionListener listener = event -> { if (event.getValueIsAdjusting()) return; Object item = ((JList<?>)event.getSource()).getSelectedValue(); // if a sub-list is closed, fallback to the selected value from the main list if (item == null) { item = mainList.getSelectedValue(); } if (item instanceof AttachToProcessItem) { popup.setCaption(((AttachToProcessItem)item).getSelectedDebugger().getDebuggerSelectedTitle()); } if (item instanceof AttachHostItem hostItem) { String attachHostName = hostItem.getText(project); attachHostName = StringUtil.shortenTextWithEllipsis(attachHostName, 50, 0); popup.setCaption(XDebuggerBundle.message("xdebugger.attach.host.popup.title", attachHostName)); } }; popup.addListSelectionListener(listener); // force first valueChanged event listener.valueChanged(new ListSelectionEvent(mainList, mainList.getMinSelectionIndex(), mainList.getMaxSelectionIndex(), false)); popup.showCenteredInCurrentWindow(project); }, project.getDisposed()); } }.queue(); } | actionPerformed |
295,098 | void (@NotNull ProgressIndicator indicator) { List<AttachItem> allItems = Collections.unmodifiableList(getTopLevelItems(indicator, project)); ApplicationManager.getApplication().invokeLater(() -> { AttachListStep step = new AttachListStep(allItems, XDebuggerBundle.message("xdebugger.attach.popup.title.default"), project); final ListPopup popup = JBPopupFactory.getInstance().createListPopup(step); final JList mainList = ((ListPopupImpl) ListPopupWrapper.getRootPopup(popup)).getList(); ListSelectionListener listener = event -> { if (event.getValueIsAdjusting()) return; Object item = ((JList<?>)event.getSource()).getSelectedValue(); // if a sub-list is closed, fallback to the selected value from the main list if (item == null) { item = mainList.getSelectedValue(); } if (item instanceof AttachToProcessItem) { popup.setCaption(((AttachToProcessItem)item).getSelectedDebugger().getDebuggerSelectedTitle()); } if (item instanceof AttachHostItem hostItem) { String attachHostName = hostItem.getText(project); attachHostName = StringUtil.shortenTextWithEllipsis(attachHostName, 50, 0); popup.setCaption(XDebuggerBundle.message("xdebugger.attach.host.popup.title", attachHostName)); } }; popup.addListSelectionListener(listener); // force first valueChanged event listener.valueChanged(new ListSelectionEvent(mainList, mainList.getMinSelectionIndex(), mainList.getMaxSelectionIndex(), false)); popup.showCenteredInCurrentWindow(project); }, project.getDisposed()); } | run |
295,099 | List<XAttachHostProvider<XAttachHost>> () { return XAttachHostProvider.EP.getExtensionList().stream().map(provider -> (XAttachHostProvider<XAttachHost>) provider).collect( Collectors.toList()); } | getAvailableHosts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.