Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
294,400 | void (MouseEvent e) { onClick.run(); releaseMouseListener(); } | mouseClicked |
294,401 | void (MouseEvent e) { updateTable(true); } | mouseEntered |
294,402 | void (MouseEvent e) { updateTable(false); } | mouseExited |
294,403 | void () { ThreadingAssertions.assertEventDispatchThread(); if (isInClickableMode()) { removeMouseListener(myMouseListener); myMouseListener = null; setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); setBackground(JBColor.background()); } } | releaseMouseListener |
294,404 | void (boolean value) { setPaintBusy(value); } | setBusy |
294,405 | void () { String newPattern = "*" + myFilteringPattern; if (myMatcher.getPattern().equals(newPattern)) { return; } myMatcher = NameUtil.buildMatcher(newPattern).build(); fireTableDataChanged(); if (getSelectedClass() == null && getRowCount() > 0) { getSelectionModel().setSelectionInterval(0, 0); } } | run |
294,406 | void (@NotNull List<? extends TypeInfo> classes) { myIsShowCounts = false; final LinkedHashMap<TypeInfo, Long> class2Count = new LinkedHashMap<>(); classes.forEach(x -> class2Count.put(x, 0L)); updateCountsInternal(class2Count); } | updateClassesOnly |
294,407 | void (@NotNull Map<TypeInfo, Long> class2Count) { myIsShowCounts = true; updateCountsInternal(class2Count); } | updateContent |
294,408 | void () { myModel.show(); } | showContent |
294,409 | void (@NotNull Map<TypeInfo, Long> class2Count) { releaseMouseListener(); getEmptyText().setText(StatusText.getDefaultEmptyText()); final TypeInfo selectedClass = myModel.getSelectedClassBeforeHide(); int newSelectedIndex = -1; final boolean isInitialized = !myItems.isEmpty(); myItems = List.copyOf(class2Count.keySet()... | updateCountsInternal |
294,410 | Object (@NotNull @NonNls String dataId) { if (SELECTED_CLASS_KEY.is(dataId)) { return getSelectedClass(); } if (REF_COUNT_PROVIDER_KEY.is(dataId)) { return myCountProvider; } return myParent.getData(dataId); } | getData |
294,411 | void (@NotNull @NlsContexts.StatusText String emptyText) { clearSelection(); releaseMouseListener(); getEmptyText().setText(emptyText); myItems = Collections.emptyList(); myCounts.clear(); myModel.mySelectedClassWhenHidden = null; fireTableDataChanged(); } | clean |
294,412 | void () { ApplicationManager.getApplication().invokeLater(() -> clean("")); } | dispose |
294,413 | boolean () { if (ApplicationManager.getApplication().isUnitTestMode() || ApplicationManager.getApplication().isHeadlessEnvironment()) return false; try { return getMousePosition() != null; } catch (NullPointerException e) { // A workaround for https://bugs.openjdk.org/browse/JDK-6840067 return false; } } | isUnderMouseCursor |
294,414 | TrackingType (int row) { TypeInfo ref = (TypeInfo)getValueAt(row, convertColumnIndexToView(DiffViewTableModel.CLASSNAME_COLUMN_INDEX)); return myInstancesTracker.getTrackingType(ref.name()); } | getTrackingType |
294,415 | void () { myModel.fireTableDataChanged(); } | fireTableDataChanged |
294,416 | int () { return myIsWithContent ? myItems.size() : 0; } | getRowCount |
294,417 | Object (int ix) { return getTypeInfoAt(ix); } | getValue |
294,418 | Object (int ix) { return myCounts.getOrDefault(getTypeInfoAt(ix), UNKNOWN_VALUE).myCurrentCount; } | getValue |
294,419 | Object (int ix) { return myCounts.getOrDefault(getTypeInfoAt(ix), UNKNOWN_VALUE); } | getValue |
294,420 | TypeInfo (int ix) { return myItems.get(ix); } | getTypeInfoAt |
294,421 | int (@NotNull DiffValue o) { return Long.compare(diff(), o.diff()); } | compareTo |
294,422 | void (@NotNull JTable table, @Nullable Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (hasFocus) { setBorder(new EmptyBorder(getBorder().getBorderInsets(this))); } if (value != null) { addText(value, isSelected, row); } } | customizeCellRenderer |
294,423 | void (@NotNull Object value, boolean isSelected, int row) { String presentation = ((TypeInfo)value).name(); append(" "); if (isSelected) { FList<TextRange> textRanges = myMatcher.matchingFragments(presentation); if (textRanges != null) { SimpleTextAttributes attributes = new SimpleTextAttributes(getBackground(), getFor... | addText |
294,424 | void (@NotNull Object value, boolean isSelected, int row) { if (myIsShowCounts) { setTextAlign(SwingConstants.RIGHT); appendText(value, row); } } | addText |
294,425 | void () { ApplicationManager.getApplication().invokeLater(() -> close(OK_EXIT_CODE)); } | sessionStopped |
294,426 | void (@Nullable String message) { setTitle(message == null ? XDebuggerBundle.message("memory.view.instances.dialog.title", className) : XDebuggerBundle.message("memory.view.instances.dialog.title.warning", className, message)); } | addWarningMessage |
294,427 | String () { return "#org.jetbrains.debugger.memory.view.InstancesWindow"; } | getDimensionServiceKey |
294,428 | void (@NotNull VirtualFile file, @NotNull Document document) { myExecutionPointManager.updateExecutionPosition(file, true); } | fileContentLoaded |
294,429 | void (@NotNull VirtualFile file, @NotNull Document document) { myExecutionPointManager.updateExecutionPosition(file, true); } | fileContentReloaded |
294,430 | void (@NotNull XBreakpoint<?> breakpoint) { updateActiveNonLineBreakpointGutterIconRenderer(breakpoint); } | breakpointChanged |
294,431 | void (@NotNull XBreakpoint<?> breakpoint) { updateActiveNonLineBreakpointGutterIconRenderer(breakpoint); } | breakpointRemoved |
294,432 | void (@NotNull XBreakpoint<?> breakpoint) { XDebugSessionImpl session = getCurrentSession(); if (session != null && breakpoint == session.getActiveNonLineBreakpoint()) { session.updateExecutionPointGutterIconRenderer(); } } | updateActiveNonLineBreakpointGutterIconRenderer |
294,433 | void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { if (descriptor != null && ToolWindowId.DEBUG.equals(executor.getToolWindowId())) { XDebugSessionImpl session = mySessions.get(descriptor.getProcessHandler()); if (session != null) { session.activateSession(true); } else { setCurrentSession(n... | contentSelected |
294,434 | void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { if (descriptor != null && ToolWindowId.DEBUG.equals(executor.getToolWindowId())) { mySessions.remove(descriptor.getProcessHandler()); } } | contentRemoved |
294,435 | void (@NotNull IdeaPluginDescriptor pluginDescriptor) { XDebugSession[] sessions = getDebugSessions(); for (XDebugSession session : sessions) { XDebugProcess process = session.getDebugProcess(); if (process.dependsOnPlugin(pluginDescriptor)) { throw new CannotUnloadPluginException("Plugin is not unload-safe because of ... | checkUnloadPlugin |
294,436 | void () { } | dispose |
294,437 | void () { myBreakpointManager.init(); } | initializeComponent |
294,438 | XBreakpointManagerImpl () { return myBreakpointManager; } | getBreakpointManager |
294,439 | XDebuggerWatchesManager () { return myWatchesManager; } | getWatchesManager |
294,440 | XDebuggerPinToTopManager () { return myPinToTopManager; } | getPinToTopManager |
294,441 | XDebuggerExecutionPointManager () { return myExecutionPointManager; } | getExecutionPointManager |
294,442 | Project () { return myProject; } | getProject |
294,443 | void () { ApplicationManager.getApplication().invokeLater(() -> { Editor editor = FileEditorManager.getInstance(myProject).getSelectedTextEditor(); if (editor == null) { return; } reshowInlayToolbar(editor); }); } | sessionPaused |
294,444 | void (@Nullable XDebugSession previousSession, @Nullable XDebugSession currentSession) { myBreakpointManager.getLineBreakpointManager().queueAllBreakpointsUpdate(); ApplicationManager.getApplication().invokeLater(() -> { ValueLookupManager.getInstance(myProject).hideHint(); }, myProject.getDisposed()); if (!myProject.i... | onActiveSessionChanged |
294,445 | XDebugSession (@NotNull ExecutionConsole executionConsole) { synchronized (mySessions) { for (final XDebugSessionImpl debuggerSession : mySessions.values()) { XDebugSessionTab sessionTab = debuggerSession.getSessionTab(); if (sessionTab != null) { RunContentDescriptor contentDescriptor = sessionTab.getRunContentDescrip... | getDebugSession |
294,446 | XDebugSessionImpl () { return myActiveSession.get(); } | getCurrentSession |
294,447 | XDebuggerState () { XDebuggerState state = myState; myBreakpointManager.saveState(state.getBreakpointManagerState()); myWatchesManager.saveState(state.getWatchesManagerState()); myPinToTopManager.saveState(state.getPinToTopManagerState()); return state; } | getState |
294,448 | void (@NotNull XDebuggerState state) { myState = state; myBreakpointManager.loadState(state.getBreakpointManagerState()); myWatchesManager.loadState(state.getWatchesManagerState()); myPinToTopManager.loadState(state.getPinToTopManagerState()); } | loadState |
294,449 | void () { myBreakpointManager.noStateLoaded(); } | noStateLoaded |
294,450 | NotificationGroup () { return NotificationGroupManager.getInstance().getNotificationGroup("Debugger messages"); } | getNotificationGroup |
294,451 | void (@NotNull EditorMouseEvent e) { if (!ExperimentalUI.isNewUI() || !ShowBreakpointsOverLineNumbersAction.isSelected()) return; Editor editor = e.getEditor(); if (editor.getProject() != myProject || editor.getEditorKind() != EditorKind.MAIN_EDITOR) return; EditorGutter editorGutter = editor.getGutter(); if (editorGut... | mouseMoved |
294,452 | void (EditorGutterComponentEx gutter) { updateActiveLineNumberIcon(gutter, null, null); myLastIcon = null; } | clear |
294,453 | void (@NotNull EditorGutterComponentEx gutter, @Nullable Icon icon, @Nullable Integer line) { if (gutter.getClientProperty("editor.gutter.context.menu") != null) return; boolean requireRepaint = false; if (gutter.getClientProperty("line.number.hover.icon") != icon) { gutter.putClientProperty("line.number.hover.icon", i... | updateActiveLineNumberIcon |
294,454 | void (@NotNull EditorMouseEvent e) { if (!isEnabled(e)) { removeHighlighter(e); return; } removeHighlighter(e); int lineNumber = getLineNumber(e); if (lineNumber < 0) { return; } Editor editor = e.getEditor(); myCurrentHighlighter = editor.getMarkupModel().addLineHighlighter(DebuggerColors.NOT_TOP_FRAME_ATTRIBUTES, lin... | mouseMoved |
294,455 | void (@NotNull EditorMouseEvent e) { removeHighlighter(e); } | mouseExited |
294,456 | void (@NotNull EditorMouseEvent e) { if (myCurrentHighlighter != null) { myCurrentHighlighter.dispose(); TooltipController.getInstance().cancelTooltip(RUN_TO_CURSOR_TOOLTIP_GROUP, e.getMouseEvent(), true); IdeGlassPaneUtil.find(e.getMouseEvent().getComponent()).setCursor(null, this); myCurrentHighlighter = null; } } | removeHighlighter |
294,457 | void (@NotNull EditorMouseEvent e) { if (e.getMouseEvent().getButton() == MouseEvent.BUTTON1 && isEnabled(e)) { int lineNumber = getLineNumber(e); XDebugSessionImpl session = getCurrentSession(); if (session != null && lineNumber >= 0) { XSourcePositionImpl position = XSourcePositionImpl.create(e.getEditor().getVirtual... | mousePressed |
294,458 | int (@NotNull EditorMouseEvent event) { Editor editor = event.getEditor(); if (event.getVisualPosition().line >= ((EditorImpl)editor).getVisibleLineCount()) { return -1; } int lineStartOffset = EditorUtil.getNotFoldedLineStartOffset(editor, event.getOffset()); int documentLine = editor.getDocument().getLineNumber(lineS... | getLineNumber |
294,459 | List<XExpression> (String confName) { return ContainerUtil.notNullize(watches.get(confName)); } | getWatches |
294,460 | void (@NotNull String configurationName, @NotNull List<XExpression> expressions) { if (expressions.isEmpty()) { watches.remove(configurationName); } else { watches.put(configurationName, expressions); } } | setWatches |
294,461 | List<InlineWatch> () { return inlineWatches.values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); } | getInlineWatches |
294,462 | WatchesManagerState (@NotNull WatchesManagerState state) { List<ConfigurationState> expressions = state.getExpressions(); expressions.clear(); watches.forEach((key, value) -> expressions.add(new ConfigurationState(key, value))); List<InlineWatchState> inlineExpressionStates = state.getInlineExpressionStates(); inlineEx... | saveState |
294,463 | void () { watches.clear(); inlineWatches.clear(); } | clearContext |
294,464 | void (@NotNull WatchesManagerState state) { clearContext(); for (ConfigurationState configurationState : state.getExpressions()) { List<WatchState> expressionStates = configurationState.getExpressionStates(); if (!ContainerUtil.isEmpty(expressionStates)) { watches.put(configurationState.getName(), ContainerUtil.mapNotN... | loadState |
294,465 | void (@NotNull XSourcePosition presentationPosition, @NotNull Editor mainEditor, @NotNull XDebugSession session, @Nullable XExpression expression) { InlineWatchInplaceEditor inplaceEditor = new InlineWatchInplaceEditor(presentationPosition, session, mainEditor, expression); inplaceEditor.show(); } | showInplaceEditor |
294,466 | void (List<InlineWatch> removed, XInlineWatchesView watchesView) { inlineWatches.values().forEach(set -> removed.forEach(set::remove)); getWatchesViews().filter(v -> v != watchesView).forEach(view -> view.removeInlineWatches(removed)); } | inlineWatchesRemoved |
294,467 | void (@NotNull final DocumentEvent e) { final Document document = e.getDocument(); Collection<InlineWatch> inlines = getDocumentInlines(document); if (!inlines.isEmpty()) { myInlinesUpdateQueue.queue(new Update(document) { @Override public void run() { updateInlines(document); } }); } } | documentChanged |
294,468 | void () { updateInlines(document); } | run |
294,469 | void (@NotNull XExpression expression, int index, XSourcePosition position, boolean navigateToWatchNode) { ThreadingAssertions.assertEventDispatchThread(); InlineWatch watch = new InlineWatch(expression, position); watch.setMarker(); String fileUrl = position.getFile().getUrl(); inlineWatches.computeIfAbsent(fileUrl, (... | addInlineWatchExpression |
294,470 | void (@NotNull Document document) { @NotNull Collection<InlineWatch> inlines = getDocumentInlines(document); if (inlines.isEmpty()) return; Set<InlineWatch> toRemove = new HashSet<>(); for (InlineWatch inlineWatch : inlines) { inlineWatch.updatePosition(); if (!inlineWatch.isValid()) { toRemove.add(inlineWatch); } } re... | updateInlines |
294,471 | void (Collection<InlineWatch> remove) { for (InlineWatch watch : remove) { inlineWatches.get(watch.getPosition().getFile().getUrl()).remove(watch); } getWatchesViews().forEach(view -> view.removeInlineWatches(remove)); } | removeInlines |
294,472 | Stream<XInlineWatchesView> () { return Arrays.stream(XDebuggerManager.getInstance(myProject).getDebugSessions()) .map(s -> ((XDebugSessionImpl)s).getSessionTab()) .filter(t -> t != null && t.getWatchesView() instanceof XInlineWatchesView) .map(t -> (XInlineWatchesView)t.getWatchesView()); } | getWatchesViews |
294,473 | Collection<InlineWatch> (Document document) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null) { Set<InlineWatch> inlineWatches = this.inlineWatches.get(file.getUrl()); if (inlineWatches != null) { return new ArrayList<>(inlineWatches); } } return Collections.emptyList(); } | getDocumentInlines |
294,474 | VirtualFile () { return myFile; } | getFile |
294,475 | XSourcePositionImpl (@Nullable VirtualFile file, final int offset) { if (file == null) return null; return new XSourcePositionImpl(file) { private final NotNullLazyValue<Integer> myLine = NotNullLazyValue.atomicLazy(() -> { return ReadAction.compute(() -> { Document document = FileDocumentManager.getInstance().getDocum... | createByOffset |
294,476 | int () { return myLine.getValue(); } | getLine |
294,477 | int () { return offset; } | getOffset |
294,478 | XSourcePositionImpl (@Nullable PsiElement element) { if (element == null) return null; PsiFile psiFile = element.getContainingFile(); if (psiFile == null) return null; final VirtualFile file = psiFile.getVirtualFile(); if (file == null) return null; final SmartPsiElementPointer<PsiElement> pointer = SmartPointerManager... | createByElement |
294,479 | int () { return myDelegate.getValue().getLine(); } | getLine |
294,480 | int () { return myDelegate.getValue().getOffset(); } | getOffset |
294,481 | Navigatable (@NotNull Project project) { // no need to create delegate here, it may be expensive if (myDelegate.isComputed()) { return myDelegate.getValue().createNavigatable(project); } PsiElement elem = pointer.getElement(); if (elem instanceof Navigatable) { return ((Navigatable)elem); } return NonNavigatable.INSTAN... | createNavigatable |
294,482 | XSourcePositionImpl (@Nullable VirtualFile file, int line) { return file == null ? null : create(file, line, 0); } | create |
294,483 | XSourcePositionImpl (@Nullable VirtualFile file, final int line, final int column) { if (file == null) { return null; } return new XSourcePositionImpl(file) { private final NotNullLazyValue<Integer> myOffset = NotNullLazyValue.atomicLazy(() -> { return ReadAction.compute(() -> { int offset; if (file instanceof LightVir... | create |
294,484 | int () { return line; } | getLine |
294,485 | int () { return myOffset.getValue(); } | getOffset |
294,486 | Navigatable (@NotNull Project project) { return XDebuggerUtilImpl.createNavigatable(project, this); } | createNavigatable |
294,487 | String () { return "XSourcePositionImpl[" + myFile + ":" + getLine() + "(" + getOffset() + ")]"; } | toString |
294,488 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOver(false); } | perform |
294,489 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOut(); } | perform |
294,490 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOver(true); } | perform |
294,491 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.forceStepInto(); } | perform |
294,492 | boolean (@NotNull final XDebugSession session, final DataContext dataContext) { return session.isPaused(); } | isEnabled |
294,493 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.resume(); } | perform |
294,494 | void (@NotNull final XDebugSession session, final DataContext dataContext) { session.showExecutionPoint(); } | perform |
294,495 | DebuggerActionHandler () { return myStepOverHandler; } | getStepOverHandler |
294,496 | DebuggerActionHandler () { return myStepIntoHandler; } | getStepIntoHandler |
294,497 | DebuggerActionHandler () { return mySmartStepIntoHandler; } | getSmartStepIntoHandler |
294,498 | DebuggerActionHandler () { return myStepOutHandler; } | getStepOutHandler |
294,499 | DebuggerActionHandler () { return myForceStepOverHandler; } | getForceStepOverHandler |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.