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)value; node.appendToComponent(this); updateIcon(node); myIconTag = node.getIconTag(); Rectangle treeVisibleRect = tree.getParent() instanceof JViewport ? ((JViewport)tree.getParent()).getViewRect() : tree.getVisibleRect(); int rowX = getNodeRowX(tree, row) + tree.getInsets().left; // Renderer is not in the hierarchy yet, so we need to set FRC etc. manually AppUIUtil.targetToDevice(this, tree); if (myHaveLink) { setupLinkDimensions(treeVisibleRect, rowX); } else { int visibleRectRightX = treeVisibleRect.x + treeVisibleRect.width; int notFittingWidth = rowX + super.getPreferredSize().width - visibleRectRightX; if (node instanceof XValueNodeImpl && notFittingWidth > 0) { // text does not fit visible area - show link String rawValue = DebuggerUIUtil.getNodeRawValue((XValueNodeImpl)node); if (!StringUtil.isEmpty(rawValue) && tree.isShowing()) { Point treeRightSideOnScreen = new Point(visibleRectRightX, treeVisibleRect.y); SwingUtilities.convertPointToScreen(treeRightSideOnScreen, tree); Rectangle screen = ScreenUtil.getScreenRectangle(treeRightSideOnScreen); // text may fit the screen in ExpandableItemsHandler if (screen.x + screen.width < treeRightSideOnScreen.x + notFittingWidth) { myLongTextLink.setupComponent(rawValue, myProject); append(myLongTextLink.getLinkText(), myLongTextLink.getTextAttributes(), myLongTextLink); setupLinkDimensions(treeVisibleRect, rowX); myLinkWidth = 0; } } } } putClientProperty(ExpandableItemsHandler.RENDERER_DISABLED, myHaveLink); SpeedSearchUtil.applySpeedSearchHighlightingFiltered(tree, value, this, false, selected); } | 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.SHORTCUT_PROPERTY); myLinkShortcutSupplier = null; } } String toolTip = myLink.getToolTipText(); if (isInLinkArea(event.getX()) && toolTip != null) { return toolTip; } return super.getToolTipText(event); } | 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, height is not yet ready } | 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) { myLink.setIcon(icon); } String tooltipText = tagValue.getLinkTooltip(); if (tooltipText != null) { myLink.setToolTipText(tooltipText); Supplier<String> shortcutSupplier = tagValue.getShortcutSupplier(); if (shortcutSupplier != null) { myLinkShortcutSupplier = shortcutSupplier; ClientProperty.put(myTree, HelpTooltipManager.SHORTCUT_PROPERTY, myLinkShortcutSupplier); } } } else { super.append(fragment, attributes, tag); } } | 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); } else { super.doPaint(g); } } | 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; } return null; } | 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(XDebuggerBundle.message("xdebugger.mark.dialog.duplicate.warning"), UIUtil.getBalloonWarningIcon(), SwingConstants.LEFT)); } } | 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("<html>\n<body>\n<ul>\n"); TextTransferable.ColoredStringBuilder coloredTextContainer = new TextTransferable.ColoredStringBuilder(); for (TreePath path : selectedPaths) { htmlBuf.append(" <li>"); Object node = path.getLastPathComponent(); if (node != null) { if (node instanceof XDebuggerTreeNode) { ((XDebuggerTreeNode)node).appendToComponent(coloredTextContainer); coloredTextContainer.appendTo(plainBuf, htmlBuf); } else { String text = node.toString(); plainBuf.append(text); htmlBuf.append(text); } } plainBuf.append('\n'); htmlBuf.append("</li>\n"); } // remove the last newline plainBuf.setLength(plainBuf.length() - 1); htmlBuf.append("</ul>\n</body>\n</html>"); return new TextTransferable(htmlBuf, plainBuf); } | 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.getLastPathComponent(); myPinToTopManager .onNodeHovered(lastPathComponent instanceof XDebuggerTreeNode ? (XDebuggerTreeNode) lastPathComponent : null, XDebuggerTree.this); } | 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) { // dummy event link.onClick(dummyMouseClickEvent()); } } } } } | 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, null); if (selectedNodes.length == 1 && selectedNodes[0].getFullValueEvaluator() == null) { return DebuggerUIUtil.getNodeRawValue(selectedNodes[0]); } } return null; } | 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)rootNode, XValuePlace.TREE); } treeState.restoreState(this); repaint(); } } | 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); removeTreeExpansionListener(myTreeExpansionListener); myListeners.clear(); disposeRestorer(); } | 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.JUMP_TO_TYPE_SOURCE, this, this); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.MARK_OBJECT, this, this); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.EVALUATE_EXPRESSION, this, this); } | 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)) { setSelectionPath(node.getPath()); removeTreeListener(this); // remove the listener on first match } } }); } | 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 childrenLoaded(@NotNull XDebuggerTreeNode node, @NotNull List<? extends XValueContainerNode<?>> children, boolean last) { if (nodeFilter.value(node)) { expandPath(node.getPath()); } } }); } | 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.next(); if (isMatchingElement(element, _s)) return element; } if (!myCanExpand) { showHint(mySearchOption); } if (UISettings.getInstance().getCycleScrolling()) { final ListIterator<Object> i = getElementIterator(0); while (i.hasNext()) { final Object element = i.next(); if (isMatchingElement(element, _s)) return element; } } return current != null && isMatchingElement(current, _s) ? current : null; } | 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 (myComponent.isVisible(element) && isMatchingElement(element, _s)) return element; } if (selectedIndex > 0 || myCanExpand) { while (it.hasPrevious()) it.previous(); while (it.hasNext() && it.nextIndex() != selectedIndex) { final TreePath element = (TreePath) it.next(); if (myComponent.isVisible(element) && isMatchingElement(element, _s)) return element; } } if (myCanExpand) { while (it.hasNext()) { final TreePath element = (TreePath)it.next(); if (isMatchingElement(element, _s)) return element; } if (selectedIndex > 0) { while (it.hasPrevious()) it.previous(); while (it.hasNext() && it.nextIndex() != selectedIndex) { final TreePath element = (TreePath)it.next(); if (isMatchingElement(element, _s)) return element; } } } return null; } | 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"), SimpleTextAttributes.REGULAR_ATTRIBUTES)); LightweightHint hint = new LightweightHint(label); Point point = new Point(component.getWidth() / 2, 0); final HintHint hintHint = new HintHint(component, point) .setPreferredPosition(Balloon.Position.above) .setAwtTooltip(true) .setFont(StartupUiUtil.getLabelFont().deriveFont(Font.BOLD)) .setBorderColor(HintUtil.getHintBorderColor()) .setTextBg(HintUtil.getInformationColor()) .setShowImmediately(true); ApplicationManager.getApplication().invokeLater(() -> { final Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); hint.show(component, point.x, point.y, owner instanceof JComponent ? (JComponent)owner : null, hintHint); }); propertiesComponent.setValue(COUNTER_PROPERTY, counter + 1, 0); } | 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() - initialLevel < SEARCH_DEPTH)) .traverse() .filter(o -> !(o.getLastPathComponent() instanceof LoadingNode || (o.equals(root.getPath()) && !myComponent.isRootVisible()))); } | 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.getFirstKeyStroke()) || eventKeyStroke.equals(s.getSecondKeyStroke())); if (match) { mySearchOption.click(); e.consume(); return; } } super.processKeyEvent(e); } | 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.y = nodeBounds.y; bounds.height = nodeBounds.height; if(nodeBounds.x > bounds.x) { bounds.width = bounds.width - nodeBounds.x + bounds.x; bounds.x = nodeBounds.x; } return 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.show(initialValue); } })); } else { editor.show(null); } } | 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.doOKAction(); } | doOKAction |
296,099 | Color () { return myColor; } | getColor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.