Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
296,000
void () { if (myRebuildOnSessionEvents) { myDebuggerTreePanel.rebuild(); } }
sessionPaused
296,001
JComponent () { return myDebuggerTreePanel.getMainPanel(); }
createCenterPanel
296,002
JComponent () { return null; }
createSouthPanel
296,003
String () { return "#xdebugger.XInspectDialog"; }
getDimensionServiceKey
296,004
XDebuggerTree () { return myDebuggerTreePanel.getTree(); }
getTree
296,005
JComponent () { return myDebuggerTreePanel.getTree(); }
getPreferredFocusedComponent
296,006
void (@NotNull final JTree tree, final Object value, final boolean selected, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus) { myHaveLink = false; myLink.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus); XDebuggerTreeNode node = (XDebuggerTreeNode)val...
customizeCellRenderer
296,007
String (MouseEvent event) { // shortcut should not be shown when there is no link if (!myHaveLink && myLinkShortcutSupplier != null) { Supplier<String> supplier = ClientProperty.get(myTree, HelpTooltipManager.SHORTCUT_PROPERTY); if (supplier == myLinkShortcutSupplier) { ClientProperty.remove(myTree, HelpTooltipManager....
getToolTipText
296,008
boolean (int x) { int linkXCoordinate = x - myLinkOffset; if (linkXCoordinate < 0) { return false; } int index = myLink.findFragmentAt(linkXCoordinate); if (index == SimpleColoredComponent.FRAGMENT_ICON) { return true; } return index >= 0 && myLink.getFragmentTag(index) != null; }
isInLinkArea
296,009
void (XDebuggerTreeNode node) { Icon icon = node instanceof XValueNodeImpl && node.getTree().getPinToTopManager().isEnabled() && node.getTree().getPinToTopManager().isItemPinned((XValueNodeImpl)node) ? PlatformDebuggerImplIcons.PinToTop.PinnedItem : node.getIcon(); setIcon(icon); }
updateIcon
296,010
void (Rectangle treeVisibleRect, int rowX) { Dimension linkSize = myLink.getPreferredSize(); myLinkWidth = linkSize.width; myLinkOffset = Math.min(super.getPreferredSize().width, treeVisibleRect.x + treeVisibleRect.width - myLinkWidth - rowX); myLink.setSize(myLinkWidth, getHeight()); // actually we only set width here...
setupLinkDimensions
296,011
void (@NotNull String fragment, @NotNull SimpleTextAttributes attributes, Object tag) { if (tag instanceof XDebuggerTreeNodeHyperlink tagValue && ((XDebuggerTreeNodeHyperlink)tag).alwaysOnScreen()) { myHaveLink = true; myLink.append(fragment, attributes, tag); Icon icon = tagValue.getLinkIcon(); if (icon != null) { myL...
append
296,012
void (Graphics2D g) { if (myHaveLink) { Graphics2D textGraphics = (Graphics2D)g.create(0, 0, myLinkOffset, getHeight()); try { super.doPaint(textGraphics); } finally { textGraphics.dispose(); } g.translate(myLinkOffset, 0); myLink.setSize(myLink.getWidth(), getHeight()); myLink.doPaint(g); g.translate(-myLinkOffset, 0)...
doPaint
296,013
Dimension () { Dimension size = super.getPreferredSize(); if (myHaveLink) { size.width += myLinkWidth; } return size; }
getPreferredSize
296,014
Object (int x) { if (myHaveLink) { Object linkTag = myLink.getFragmentTagAt(x - myLinkOffset); if (linkTag != null) { return linkTag; } } Object baseFragment = super.getFragmentTagAt(x); if (baseFragment != null) { return baseFragment; } if (myIconTag != null && findFragmentAt(x) == FRAGMENT_ICON) { return myIconTag; }...
getFragmentTagAt
296,015
void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { }
customizeCellRenderer
296,016
void (Graphics2D g) { super.doPaint(g); }
doPaint
296,017
void (String text, Project project) { myText = text; myProject = project; }
setupComponent
296,018
boolean () { return true; }
alwaysOnScreen
296,019
void (MouseEvent event) { DebuggerUIUtil.showValuePopup(new ImmediateFullValueEvaluator(myText), event, myProject, null); event.consume(); }
onClick
296,020
void (@NotNull final DocumentEvent e) { updateLabelSample(); }
textChanged
296,021
void (final ActionEvent e) { final Color color = ColorChooserService.getInstance().showDialog(myColorSample, XDebuggerBundle.message("value.marker.dialog.choose.label.color"), myColor); if (color != null) { myColor = color; updateLabelSample(); } }
actionPerformed
296,022
JComponent () { return myLabelField; }
getPreferredFocusedComponent
296,023
JComponent () { return myMainPanel; }
createCenterPanel
296,024
void () { myColorSample.clear(); SimpleTextAttributes attributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, myColor); String text = myLabelField.getText().trim(); myColorSample.append(text, attributes); myErrorPanel.removeAll(); if (myExistingMarkups.contains(text)) { myErrorPanel.add(new JLabel(XDebug...
updateLabelSample
296,025
ValueMarkup () { final String text = myLabelField.getText().trim(); return text.isEmpty() ? null : new ValueMarkup(text, myColor, null); }
getConfiguredMarkup
296,026
void () { myColorSample = new SimpleColoredComponent(); mySamplePanel = new JPanel(new BorderLayout()); mySamplePanel.setBorder(BorderFactory.createEtchedBorder()); mySamplePanel.add(BorderLayout.CENTER, myColorSample); myChooseColorButton = new FixedSizeButton(mySamplePanel); }
createUIComponents
296,027
void (ComponentEvent e) { repaint(); // needed to repaint links in cell renderer on horizontal scrolling }
componentMoved
296,028
void () { DebuggerUIUtil.repaintCurrentEditor(myProject); }
run
296,029
Transferable (JComponent c) { if (!(c instanceof XDebuggerTree tree)) { return null; } TreePath[] selectedPaths = tree.getSelectionPaths(); if (selectedPaths == null || selectedPaths.length == 0) { return null; } StringBuilder plainBuf = new StringBuilder(); StringBuilder htmlBuf = new StringBuilder(); htmlBuf.append("...
createTransferable
296,030
int (JComponent c) { return COPY; }
getSourceActions
296,031
boolean () { return false; }
doCacheLastNode
296,032
void (@Nullable Object tag, @NotNull MouseEvent event) { if (tag instanceof XDebuggerTreeNodeHyperlink) { ((XDebuggerTreeNodeHyperlink)tag).onClick(event); } }
handleTagClick
296,033
void (MouseEvent e) { super.mouseMoved(e); if (!myPinToTopManager.isEnabled()) { return; } TreePath pathForLocation = getPathForLocation(e.getX(), e.getY()); if (pathForLocation == null) { myPinToTopManager.onNodeHovered(null, XDebuggerTree.this); return; } Object lastPathComponent = pathForLocation.getLastPathComponen...
mouseMoved
296,034
boolean (@NotNull MouseEvent e) { return expandIfEllipsis(e); }
onDoubleClick
296,035
void (KeyEvent e) { int key = e.getKeyCode(); if (key == KeyEvent.VK_ENTER || key == KeyEvent.VK_SPACE || key == KeyEvent.VK_RIGHT) { expandIfEllipsis(dummyMouseClickEvent()); } }
keyPressed
296,036
void (@NotNull AnActionEvent e) { TreePath[] paths = getSelectionPaths(); if (paths != null) { for (TreePath path : paths) { Object component = path.getLastPathComponent(); if (component instanceof XDebuggerTreeNode) { XDebuggerTreeNodeHyperlink link = ((XDebuggerTreeNode)component).getLink(); if (link != null) { // du...
actionPerformed
296,037
void (TreeExpansionEvent event) { handleExpansion(event, true); }
treeExpanded
296,038
void (TreeExpansionEvent event) { handleExpansion(event, false); }
treeCollapsed
296,039
void (TreeExpansionEvent event, boolean expanded) { final TreePath path = event.getPath(); final Object component = path != null ? path.getLastPathComponent() : null; if (component instanceof XValueGroupNodeImpl) { ((XValueGroupNodeImpl)component).onExpansion(expanded); } }
handleExpansion
296,040
void () { if (Registry.is("debugger.variablesView.rss")) { XDebuggerTreeSpeedSearch.installOn(this, SPEED_SEARCH_CONVERTER); } else { TreeSpeedSearch.installOn(this, false, SPEED_SEARCH_CONVERTER); } }
installSpeedSearch
296,041
MouseEvent () { return new MouseEvent(this, 0, 0, 0, 0, 0, 1, false); }
dummyMouseClickEvent
296,042
void () { myAlarm.cancelAndRequest(); }
updateEditor
296,043
boolean () { DataContext context = DataManager.getInstance().getDataContext(this); ExecutionEnvironment env = ExecutionDataKeys.EXECUTION_ENVIRONMENT.getData(context); if (env != null && env.getRunProfile() instanceof RemoteRunProfile) { return true; } return false; }
isUnderRemoteDebug
296,044
boolean (@NotNull MouseEvent e) { MessageTreeNode[] treeNodes = getSelectedNodes(MessageTreeNode.class, null); if (treeNodes.length == 1) { MessageTreeNode node = treeNodes[0]; if (node.isEllipsis()) { XDebuggerTreeNodeHyperlink link = node.getLink(); if (link != null) { link.onClick(e); return true; } } } return false...
expandIfEllipsis
296,045
void (@NotNull XDebuggerTreeListener listener) { myListeners.add(listener); }
addTreeListener
296,046
void (@NotNull XDebuggerTreeListener listener, @NotNull Disposable parentDisposable) { addTreeListener(listener); Disposer.register(parentDisposable, () -> removeTreeListener(listener)); }
addTreeListener
296,047
void (@NotNull XDebuggerTreeListener listener) { myListeners.remove(listener); }
removeTreeListener
296,048
void (XDebuggerTreeNode root, final boolean rootVisible) { setRootVisible(rootVisible); myTreeModel.setRoot(root); }
setRoot
296,049
XDebuggerTreeNode () { return (XDebuggerTreeNode)myTreeModel.getRoot(); }
getRoot
296,050
XSourcePosition () { return mySourcePosition; }
getSourcePosition
296,051
void (final @Nullable XSourcePosition sourcePosition) { mySourcePosition = sourcePosition; }
setSourcePosition
296,052
XDebuggerEditorsProvider () { return myEditorsProvider; }
getEditorsProvider
296,053
Project () { return myProject; }
getProject
296,054
XDebuggerPinToTopManager () { return myPinToTopManager; }
getPinToTopManager
296,055
DefaultTreeModel () { return myTreeModel; }
getTreeModel
296,056
Object (@NotNull @NonNls final String dataId) { if (XDEBUGGER_TREE_KEY.is(dataId)) { return this; } if (SELECTED_NODES.is(dataId)) { return List.of(getSelectedNodes(XValueNodeImpl.class, null)); } if (PlatformDataKeys.PREDEFINED_TEXT.is(dataId)) { XValueNodeImpl[] selectedNodes = getSelectedNodes(XValueNodeImpl.class, ...
getData
296,057
void (final XDebuggerTreeState treeState) { Object rootNode = myTreeModel.getRoot(); if (rootNode instanceof XDebuggerTreeNode) { ((XDebuggerTreeNode)rootNode).clearChildren(); if (isRootVisible() && rootNode instanceof XValueNodeImpl) { ((XValueNodeImpl)rootNode).getValueContainer().computePresentation((XValueNode)roo...
rebuildAndRestore
296,058
void (final @NotNull XDebuggerTreeNode node, final @NotNull List<? extends XValueContainerNode<?>> children, final boolean last) { for (XDebuggerTreeListener listener : myListeners) { listener.childrenLoaded(node, children, last); } }
childrenLoaded
296,059
void (final @NotNull RestorableStateNode node, final @NotNull String name) { for (XDebuggerTreeListener listener : myListeners) { listener.nodeLoaded(node, name); } }
nodeLoaded
296,060
void () { Object root = myTreeModel.getRoot(); if (root instanceof XValueContainerNode<?>) { // avoid SOE StreamEx.<XValueContainerNode<?>>ofTree((XValueContainerNode<?>)root, n -> StreamEx.of(n.getLoadedChildren())) .forEach(XValueContainerNode::setObsolete); } }
markNodesObsolete
296,061
void () { // clear all possible inner fields that may still have links to debugger objects setModel(null); myTreeModel.setRoot(null); setCellRenderer(null); UIUtil.dispose(this); setLeadSelectionPath(null); setAnchorSelectionPath(null); accessibleContext = null; removeComponentListener(myMoveListener); removeTreeExpans...
dispose
296,062
void () { if (myCurrentRestorer != null) { myCurrentRestorer.dispose(); myCurrentRestorer = null; } }
disposeRestorer
296,063
void () { DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.SET_VALUE, this, this); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.COPY_VALUE, this, this); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.JUMP_TO_SOURCE, this, this); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions....
registerShortcuts
296,064
XDebuggerTree (final AnActionEvent e) { return e.getData(XDEBUGGER_TREE_KEY); }
getTree
296,065
List<XValueNodeImpl> (@NotNull DataContext context) { return ContainerUtil.notNullize(SELECTED_NODES.getData(context)); }
getSelectedNodes
296,066
void (Runnable runnable) { EdtExecutorService.getInstance().execute(runnable); }
invokeLater
296,067
void (Condition<? super TreeNode> nodeFilter, Condition<? super TreeNode> obsoleteChecker) { addTreeListener(new XDebuggerTreeListener() { @Override public void nodeLoaded(@NotNull RestorableStateNode node, @NotNull String name) { if (obsoleteChecker.value(node)) { removeTreeListener(this); } if (nodeFilter.value(node)...
selectNodeOnLoad
296,068
void (@NotNull RestorableStateNode node, @NotNull String name) { if (obsoleteChecker.value(node)) { removeTreeListener(this); } if (nodeFilter.value(node)) { setSelectionPath(node.getPath()); removeTreeListener(this); // remove the listener on first match } }
nodeLoaded
296,069
void (final Condition<? super TreeNode> nodeFilter) { addTreeListener(new XDebuggerTreeListener() { @Override public void nodeLoaded(@NotNull RestorableStateNode node, @NotNull String name) { if (nodeFilter.value(node) && !node.isLeaf()) { // cause children computing node.getChildCount(); } } @Override public void chil...
expandNodesOnLoad
296,070
void (@NotNull RestorableStateNode node, @NotNull String name) { if (nodeFilter.value(node) && !node.isLeaf()) { // cause children computing node.getChildCount(); } }
nodeLoaded
296,071
void (@NotNull XDebuggerTreeNode node, @NotNull List<? extends XValueContainerNode<?>> children, boolean last) { if (nodeFilter.value(node)) { expandPath(node.getPath()); } }
childrenLoaded
296,072
boolean () { return DataManager.getInstance().getDataContext(this).getData(XDebugSessionTab.TAB_KEY) == null; }
isDetached
296,073
boolean () { return false; }
isModified
296,074
int (String pattern, String text) { return matchingFragments(pattern, text) != null ? 1 : 0; }
matchingDegree
296,075
Iterable<TextRange> (@NotNull String pattern, @NotNull String text) { myRecentSearchText = pattern; int index = StringUtil.indexOfIgnoreCase(text, pattern, 0); return index >= 0 ? Collections.singleton(TextRange.from(index, pattern.length())) : null; }
matchingFragments
296,076
XDebuggerTreeSpeedSearch (XDebuggerTree tree, Convertor<? super TreePath, String> toStringConvertor) { XDebuggerTreeSpeedSearch search = new XDebuggerTreeSpeedSearch(tree, toStringConvertor); search.setupListeners(); return search; }
installOn
296,077
Object (String s) { final int selectedIndex = getSelectedIndex(); final ListIterator<?> it = getElementIterator(selectedIndex + 1); final Object current; if (it.hasPrevious()) { current = it.previous(); it.next(); } else { current = null; } final String _s = s.trim(); while (it.hasNext()) { final Object element = it.ne...
findNextElement
296,078
Object (@NotNull String s) { int selectedIndex = getSelectedIndex(); if (selectedIndex < 0) { selectedIndex = 0; } final ListIterator<Object> it = getElementIterator(selectedIndex); final String _s = s.trim(); // search visible nodes at first while (it.hasNext()) { final TreePath element = (TreePath) it.next(); if (myC...
findElement
296,079
void (JComponent component) { PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(); int counter = propertiesComponent.getInt(COUNTER_PROPERTY, 0); if (counter >= 1) { return; } JComponent label = HintUtil.createInformationLabel(new SimpleColoredText(FindBundle.message("find.expand.nodes"), Simple...
showHint
296,080
JBIterable<TreePath> () { XDebuggerTreeNode root = ObjectUtils.tryCast(myComponent.getModel().getRoot(), XDebuggerTreeNode.class); int initialLevel = root != null ? root.getPath().getPathCount() : 0; return TreeUtil.treePathTraverser(myComponent) .expand(n -> myComponent.isExpanded(n) || (myCanExpand && n.getPathCount(...
allPaths
296,081
void (AnAction searchOption) { mySearchOption = new MyActionButton(searchOption, false); myOptionShortcutSet = getMnemonicAsShortcut(searchOption); }
setSearchOption
296,082
void (KeyEvent e) { if (mySearchOption.isShowing() && myOptionShortcutSet != null) { KeyStroke eventKeyStroke = KeyStroke.getKeyStrokeForEvent(e); boolean match = Arrays.stream(myOptionShortcutSet.getShortcuts()) .filter(s -> s.isKeyboard()) .map(s -> ((KeyboardShortcut)s)) .anyMatch(s -> eventKeyStroke.equals(s.getFir...
processKeyEvent
296,083
SearchPopup (String s) { return new DebuggerSearchPopup(s); }
createPopup
296,084
void (String newText) { if (findElement(newText) == null) { mySearchField.setForeground(ERROR_FOREGROUND_COLOR); if(!myCanExpand) { showHint(mySearchOption); } } else { mySearchField.setForeground(FOREGROUND_COLOR); } }
handleInsert
296,085
boolean (@NotNull AnActionEvent e) { return myCanExpand; }
isSelected
296,086
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
296,087
void (@NotNull AnActionEvent e, boolean state) { PropertiesComponent.getInstance().setValue(CAN_EXPAND_PROPERTY, state); setCanExpand(state); }
setSelected
296,088
DataContext () { return DataManager.getInstance().getDataContext(this); }
getDataContext
296,089
int () { return isSelected() ? SELECTED : super.getPopState(); }
getPopState
296,090
Icon () { if (isEnabled() && isSelected()) { Icon selectedIcon = myPresentation.getSelectedIcon(); if (selectedIcon != null) return selectedIcon; } return super.getIcon(); }
getIcon
296,091
JComponent () { return getTree(); }
getHostComponent
296,092
void () { getTree().scrollPathToVisible(getNodePath()); }
beforeShow
296,093
Rectangle () { final JTree tree = getTree(); Rectangle bounds = tree.getVisibleRect(); Rectangle nodeBounds = tree.getPathBounds(getNodePath()); if (bounds == null || nodeBounds == null) { return null; } if (bounds.y > nodeBounds.y || bounds.y + bounds.height < nodeBounds.y + nodeBounds.height) { return null; } bounds....
getEditorBounds
296,094
Rectangle () { Rectangle bounds = super.getEditorBounds(); if (bounds == null) { return null; } bounds.x += myNameOffset; bounds.width -= myNameOffset; return bounds; }
getEditorBounds
296,095
JComponent () { return myEditorPanel; }
createInplaceEditorComponent
296,096
void (final XValueNodeImpl node, @NotNull final String nodeName) { final SetValueInplaceEditor editor = new SetValueInplaceEditor(node, nodeName); if (editor.myModifier != null) { editor.myModifier.calculateInitialValueEditorText(initialValue -> AppUIUtil.invokeOnEdt(() -> { if (editor.getTree().isShowing()) { editor.s...
show
296,097
void (String initialValue) { myExpressionEditor.setExpression(XExpressionImpl.fromText(initialValue)); myExpressionEditor.selectAll(); show(); }
show
296,098
void () { if (myModifier == null) return; DebuggerUIUtil.setTreeNodeValue(myValueNode, getExpression(), (@Nls var errorMessage) -> { Editor editor = getEditor(); if (editor != null) { HintManager.getInstance().showErrorHint(editor, errorMessage); } else { Messages.showErrorDialog(myTree, errorMessage); } }); super.doOK...
doOKAction
296,099
Color () { return myColor; }
getColor