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 instan... | 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); } } my... | 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(watchE... | 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 = getT... | 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.stringF... | 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)... | 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 X... | 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 + rootN... | 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(); ... | 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()... | 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 ... | 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) ... | 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(... | 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 instance... | 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 th... | 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())) { presentatio... | 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.getMar... | 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.firs... | 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... | 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 lineBreak... | 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... | 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.setSelecte... | 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().se... | 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.... | 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... | 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... | 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"), projec... | 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.