Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
295,900 | void () { final List<XExpression> expressions = getRecentExpressions(); if (myHistoryIndex < expressions.size() - 1) { myHistoryIndex++; setExpression(expressions.get(myHistoryIndex)); } } | goBackward |
295,901 | void () { final List<XExpression> expressions = getRecentExpressions(); if (myHistoryIndex > 0) { myHistoryIndex--; setExpression(expressions.get(myHistoryIndex)); } } | goForward |
295,902 | void (EditorEx editor) { editor.getColorsScheme().setAttributes(EditorColors.FOLDED_TEXT_ATTRIBUTES, null); editor.reinitSettings(); FoldingModelEx foldingModel = editor.getFoldingModel(); CharSequence text = editor.getDocument().getCharsSequence(); foldingModel.runBatchFoldingOperation(() -> { foldingModel.clearFoldRe... | foldNewLines |
295,903 | void (EditorEx editor) { editor.putUserData(EditorImpl.DISABLE_REMOVE_ON_DROP, Boolean.TRUE); } | prepareEditor |
295,904 | void (Editor editor) { editor.getContentComponent().putClientProperty(Expandable.class, this); } | setExpandable |
295,905 | void () { if (myExpandedPopup != null || !getComponent().isEnabled()) return; if (myExpandHandler != null) { myExpandHandler.run(); return; } XDebuggerExpressionEditor expressionEditor = new XDebuggerExpressionEditor(myProject, myDebuggerEditorsProvider, myHistoryId, mySourcePosition, getExpression(), true, true, false... | expand |
295,906 | JComponent (JComponent component, boolean multiline, boolean showEditor) { return component; } | decorate |
295,907 | void (Runnable handler) { myExpandHandler = handler; } | setExpandHandler |
295,908 | void (Runnable handler) { JComponent component = getEditorComponent(); if (component instanceof EditorTextField) { ((EditorTextField)component).addSettingsProvider(editor -> { editor.getContentComponent().putClientProperty(Expandable.class, new Expandable() { @Override public void expand() { } @Override public void col... | addCollapseButton |
295,909 | void () { } | expand |
295,910 | void () { handler.run(); } | collapse |
295,911 | boolean () { return true; } | isExpanded |
295,912 | void (EditorEx editor, Runnable handler) { ErrorStripeEditorCustomization.DISABLED.customize(editor); // TODO: copied from ExpandableTextField JScrollPane pane = editor.getScrollPane(); pane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); pane.getVerticalScrollBar().add(JBScrollBar.LEADING, n... | addCollapseButton |
295,913 | void (MouseEvent event) { setIcon(AllIcons.General.CollapseComponentHover); } | mouseEntered |
295,914 | void (MouseEvent event) { setIcon(AllIcons.General.CollapseComponent); } | mouseExited |
295,915 | void (MouseEvent event) { handler.run(); } | mouseClicked |
295,916 | void (@Nullable Editor source, @Nullable Editor destination) { if (source != null && destination != null) { destination.getCaretModel().moveToOffset(source.getCaretModel().getOffset()); } } | copyCaretPosition |
295,917 | void () { if (myExpandedPopup != null) { myExpandedPopup.cancel(); } } | collapse |
295,918 | boolean () { return myExpandedPopup != null; } | isExpanded |
295,919 | boolean (@NotNull MouseEvent e, int clickCount) { if (isEnabled()) { ListPopup oldPopup = SoftReference.dereference(myPopup); if (oldPopup != null && !oldPopup.isDisposed()) { oldPopup.cancel(); myPopup = null; return true; } ListPopup popup = createLanguagePopup(); popup.showUnderneathOf(LanguageChooser.this); myPopup... | onClick |
295,920 | Color () { return isEnabled() ? ENABLED_COLOR : DISABLED_COLOR; } | getForeground |
295,921 | void (@NotNull AnActionEvent e) { setExpression(XExpressionImpl.changeLanguage(getExpression(), language)); requestFocusInEditor(); } | actionPerformed |
295,922 | boolean () { return PropertiesComponent.getInstance().getBoolean(SOFT_WRAPS_KEY, true); } | isUseSoftWraps |
295,923 | void (boolean use) { PropertiesComponent.getInstance().setValue(SOFT_WRAPS_KEY, use); Editor editor = getEditor(); if (editor != null) { AbstractToggleUseSoftWrapsAction.toggleSoftWraps(editor, null, use); } } | setUseSoftWraps |
295,924 | void () { doOKAction(); } | doPopupOKAction |
295,925 | void () { hide(); } | doOKAction |
295,926 | void () { hide(); } | cancelEditing |
295,927 | void () { if (!isShown()) { return; } myInplaceEditorComponent = null; onHidden(); myRemoveActions.forEach(Runnable::run); myRemoveActions.clear(); Disposer.dispose(myDisposable); final JComponent hostComponent = getHostComponent(); hostComponent.repaint(); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() ... | hide |
295,928 | void () { } | onHidden |
295,929 | void (JComponent component, int x, int y, int width, int height) { int h = Math.max(height, component.getPreferredSize().height); component.setBounds(x, y - (h - height) / 2, width, h); } | setInplaceEditorBounds |
295,930 | void () { LOG.assertTrue(myInplaceEditorComponent == null, "editor is not released"); beforeShow(); final JComponent hostComponent = getHostComponent(); final JRootPane rootPane = getHostComponent().getRootPane(); if (rootPane == null) { return; } final JLayeredPane layeredPane = rootPane.getLayeredPane(); Rectangle bo... | show |
295,931 | void (ComponentEvent e) { resetBounds(); } | componentMoved |
295,932 | void (ComponentEvent e) { resetBounds(); } | componentResized |
295,933 | void () { final Project project = getProject(); ApplicationManager.getApplication().invokeLater(() -> { if (!isShown() || project == null || project.isDisposed()) { return; } JComponent hostComponent = getHostComponent(); JLayeredPane layeredPane1 = hostComponent.getRootPane().getLayeredPane(); Rectangle bounds1 = getE... | resetBounds |
295,934 | void (ComponentEvent e) { cancelEditing(); } | componentHidden |
295,935 | void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { cancelEditing(); } | contentSelected |
295,936 | void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { cancelEditing(); } | contentRemoved |
295,937 | void (ActionEvent e) { doOKAction(); } | actionPerformed |
295,938 | void (ActionEvent e) { cancelEditing(); } | actionPerformed |
295,939 | void () { } | onShown |
295,940 | void (AWTEvent event) { if (!isShown()) { return; } MouseEvent mouseEvent = (MouseEvent)event; if (mouseEvent.getClickCount() == 0) { return; } final int id = mouseEvent.getID(); if (id != MouseEvent.MOUSE_PRESSED && id != MouseEvent.MOUSE_RELEASED && id != MouseEvent.MOUSE_CLICKED) { return; } final Component sourceCo... | eventDispatched |
295,941 | boolean () { return myInplaceEditorComponent != null; } | isShown |
295,942 | ActionGroup (final String id) { return (ActionGroup)CustomActionsSchema.getInstance().getCorrectedAction(id); } | getCustomizedActionGroup |
295,943 | void (final Content content) { if (myConsole instanceof ObservableConsoleView observable) { AtomicBoolean alertFired = new AtomicBoolean(); observable.addChangeListener(new ObservableConsoleView.ChangeListener() { @Override public void textAdded(@NotNull String text, @NotNull ConsoleViewContentType type) { if ((type.eq... | attachNotificationTo |
295,944 | void (@NotNull String text, @NotNull ConsoleViewContentType type) { if ((type.equals(ConsoleViewContentType.ERROR_OUTPUT) || type.equals(ConsoleViewContentType.NORMAL_OUTPUT)) && alertFired.compareAndSet(false, true)) { content.fireAlert(); } } | textAdded |
295,945 | RunProfile () { return myEnvironment != null ? myEnvironment.getRunProfile() : null; } | getRunProfile |
295,946 | void () { if (ApplicationManager.getApplication().isUnitTestMode()) return; ModalityUiUtil.invokeLaterIfNeeded(ModalityState.defaultModalityState(), () -> { if (myRunContentDescriptor != null) { RunContentManager manager = RunContentManager.getInstance(myProject); ToolWindow toolWindow = manager.getToolWindowByDescript... | select |
295,947 | void (CustomizableActionGroupRegistrar registrar) { registrar.addCustomizableActionGroup(XDebuggerActions.WATCHES_TREE_TOOLBAR_GROUP, XDebuggerBundle.message("debug.watches.toolbar")); if (UIExperiment.isNewDebuggerUIEnabled()) { registrar.addCustomizableActionGroup(XDebuggerActions.TOOL_WINDOW_TOP_TOOLBAR_3_GROUP, XDe... | registerGroups |
295,948 | void (@NotNull XDebugProcess debugProcess) { update(true); } | processStarted |
295,949 | void (@NotNull XDebugProcess debugProcess) { update(getDebugSessionsCount() > 1); // stopped session is still counted } | processStopped |
295,950 | void (@NotNull RegistryValue value) { update(getDebugSessionsCount() > 0); } | afterValueChanged |
295,951 | void (@NotNull Project project) { project.getMessageBus().connect().subscribe(XDebuggerManager.TOPIC, this); } | projectOpened |
295,952 | void (@NotNull Project project) { update(getDebugSessionsCount() > 0); } | projectClosed |
295,953 | long () { return Arrays.stream(ProjectManager.getInstance().getOpenProjects()) .filter(p -> !p.isDisposed()) .mapToInt(p -> XDebuggerManager.getInstance(p).getDebugSessions().length) .sum(); } | getDebugSessionsCount |
295,954 | void () { myMainPanel.removeAll(); } | dispose |
295,955 | XDebuggerTree () { return myTree; } | getTree |
295,956 | JPanel () { return myMainPanel; } | getMainPanel |
295,957 | boolean (final DnDAction action, final @NotNull Point dragOrigin) { return getNodesToDrag().length > 0; } | canStartDragging |
295,958 | XValueNodeImpl[] () { return myTree.getSelectedNodes(XValueNodeImpl.class, null); } | getNodesToDrag |
295,959 | DnDDragStartBean (final DnDAction action, final @NotNull Point dragOrigin) { return new DnDDragStartBean(getNodesToDrag()); } | startDragging |
295,960 | XDebuggerTreeRestorer (@NotNull XDebuggerTree tree) { ThreadingAssertions.assertEventDispatchThread(); XDebuggerTreeRestorer restorer = null; if (myRootInfo != null) { restorer = new XDebuggerTreeRestorer(tree, myLastVisibleNodeRect); tree.setCurrentRestorer(restorer); restorer.restore(tree.getRoot(), myRootInfo); } re... | restoreState |
295,961 | XDebuggerTreeState (@NotNull XDebuggerTree tree) { return new XDebuggerTreeState(tree); } | saveState |
295,962 | void (final XDebuggerTree tree, final NodeInfo nodeInfo, final XDebuggerTreeNode treeNode) { if (tree.isExpanded(treeNode.getPath())) { List<? extends XDebuggerTreeNode> children = treeNode.getLoadedChildren(); nodeInfo.myExpanded = true; for (XDebuggerTreeNode child : children) { TreePath path = child.getPath(); Recta... | addChildren |
295,963 | NodeInfo (final XDebuggerTreeNode node, boolean selected) { if (node instanceof RestorableStateNode valueNode) { if (valueNode.isComputed()) { return new NodeInfo(valueNode.getName(), valueNode.getRawValue(), selected); } } return null; } | createNode |
295,964 | void (@NotNull NodeInfo child) { if (myChildren == null) { myChildren = new MultiMap<>(); } myChildren.putValue(child.myName, child); } | addChild |
295,965 | boolean () { return myExpanded; } | isExpanded |
295,966 | boolean () { return mySelected; } | isSelected |
295,967 | String () { return myValue; } | getValue |
295,968 | NodeInfo (XNamedTreeNode node) { String name = node.getName(); if (myChildren == null) { return null; } List<NodeInfo> infos = (List<NodeInfo>)myChildren.get(name); if (infos.size() > 1) { TreeNode parent = node.getParent(); if (parent instanceof XDebuggerTreeNode) { int idx = 0; for (XDebuggerTreeNode treeNode : ((XDe... | getChild |
295,969 | void (final XDebuggerTreeNode treeNode, final XDebuggerTreeState.NodeInfo nodeInfo) { if (nodeInfo.isExpanded()) { myTree.expandPath(treeNode.getPath()); treeNode.getLoadedChildren().forEach(child -> restoreNode(child, nodeInfo)); myNode2State.put(treeNode, nodeInfo); } } | restoreChildren |
295,970 | void (final XDebuggerTreeNode treeNode, final XDebuggerTreeState.NodeInfo parentInfo) { if (treeNode instanceof RestorableStateNode node) { if (node.isComputed()) { doRestoreNode(node, parentInfo.getChild(node)); } else { myNode2ParentState.put(node, parentInfo); } } } | restoreNode |
295,971 | void (final RestorableStateNode treeNode, final XDebuggerTreeState.NodeInfo nodeInfo) { if (nodeInfo != null) { if (!checkExtendedModified(treeNode) && !(Objects.equals(nodeInfo.getValue(), treeNode.getRawValue()))) { treeNode.markChanged(); } if (!myStopRestoringSelection && nodeInfo.isSelected() && mySelectionPath ==... | doRestoreNode |
295,972 | boolean (@NotNull TreePath path1, @NotNull TreePath path2) { if (path1.getPathCount() != path2.getPathCount()) { return false; } do { Object component1 = path1.getLastPathComponent(); Object component2 = path2.getLastPathComponent(); if (component1 instanceof XNamedTreeNode && component2 instanceof XNamedTreeNode) { if... | pathsEqual |
295,973 | boolean (RestorableStateNode treeNode) { if (treeNode instanceof XValueNodeImpl) { XValuePresentation presentation = ((XValueNodeImpl)treeNode).getValuePresentation(); if (presentation instanceof XValueExtendedPresentation) { if (((XValueExtendedPresentation)presentation).isModified()) { treeNode.markChanged(); } retur... | checkExtendedModified |
295,974 | void (@NotNull final RestorableStateNode node, @NotNull final String name) { XDebuggerTreeState.NodeInfo parentInfo = myNode2ParentState.remove(node); doRestoreNode(node, parentInfo != null ? parentInfo.getChild(node) : myPendingNode2State.remove(node)); checkFinished(); } | nodeLoaded |
295,975 | void () { if (myNode2ParentState.isEmpty() && myNode2State.isEmpty() && myFinished.complete(myTree)) { if (myLastVisibleNodeRect != null) { myTree.scrollRectToVisible(myLastVisibleNodeRect); } //dispose(); // do not dispose here, we still need tree listeners for late renderers } } | checkFinished |
295,976 | void (@NotNull final XDebuggerTreeNode node, @NotNull final List<? extends XValueContainerNode<?>> children, final boolean last) { XDebuggerTreeState.NodeInfo nodeInfo = myNode2State.get(node); if (nodeInfo != null) { for (XDebuggerTreeNode child : children) { restoreNode(child, nodeInfo); } } if (last) { myNode2State.... | childrenLoaded |
295,977 | void () { myFinished.cancel(false); myNode2ParentState.clear(); myNode2State.clear(); myTree.removeTreeListener(this); myTree.removeTreeSelectionListener(this); } | dispose |
295,978 | CompletableFuture<XDebuggerTree> () { return myFinished.copy(); } | onFinished |
295,979 | boolean () { return myFinished.isDone() && !myFinished.isCompletedExceptionally(); } | isFinished |
295,980 | void (TreeSelectionEvent e) { if (!myInsideRestoring) { myStopRestoringSelection = true; } } | valueChanged |
295,981 | JComponent () { return myExpressionEditor.getComponent(); } | createInplaceEditorComponent |
295,982 | void () { final ComboPopup popup = myExpressionEditor.getComboBox().getPopup(); if (popup != null && popup.isVisible()) { popup.hide(); } } | onHidden |
295,983 | void () { ComboPopup popup = myExpressionEditor.getComboBox().getPopup(); if (popup != null && popup.isVisible()) { Object value = popup.getList().getSelectedValue(); if (value != null) { myExpressionEditor.setExpression((XExpression)value); } } doOKAction(); } | doPopupOKAction |
295,984 | void () { myExpressionEditor.saveTextInHistory(); super.doOKAction(); } | doOKAction |
295,985 | void () { XDebugSession session = XDebugView.getSession(myTree); if (session != null) { session.addSessionListener(new XDebugSessionListener() { @Override public void sessionPaused() { cancel(); } @Override public void sessionResumed() { cancel(); } @Override public void sessionStopped() { cancel(); } @Override public ... | onShown |
295,986 | void () { cancel(); } | sessionPaused |
295,987 | void () { cancel(); } | sessionResumed |
295,988 | void () { cancel(); } | sessionStopped |
295,989 | void () { cancel(); } | stackFrameChanged |
295,990 | void () { cancel(); } | beforeSessionResume |
295,991 | void () { AppUIUtil.invokeOnEdt(XDebuggerTreeInplaceEditor.this::cancelEditing); } | cancel |
295,992 | XExpression () { return myExpressionEditor.getExpression(); } | getExpression |
295,993 | JComponent () { return myExpressionEditor.getPreferredFocusedComponent(); } | getPreferredFocusedComponent |
295,994 | Editor () { return myExpressionEditor.getEditor(); } | getEditor |
295,995 | JComponent () { return myExpressionEditor.getEditorComponent(); } | getEditorComponent |
295,996 | TreePath () { return myNode.getPath(); } | getNodePath |
295,997 | XDebuggerTree () { return myTree; } | getTree |
295,998 | Project () { return myNode.getTree().getProject(); } | getProject |
295,999 | int () { Icon icon = myNode.getIcon(); if (icon != null) { SimpleColoredComponent iconLabel = new SimpleColoredComponent(); iconLabel.getIpad().right = 0; iconLabel.getIpad().left = 0; iconLabel.setIcon(myNode.getIcon()); Border border = iconLabel.getMyBorder(); return iconLabel.getPreferredSize().width - (border != nu... | getAfterIconX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.