Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
295,600
void () { myRestoreLink = new ActionLink(XDebuggerBundle.message("xbreakpoints.restore.label"), e -> { WriteAction.run(() -> ((XBreakpointManagerImpl)XDebuggerManager.getInstance(myBreakpoint.getProject()).getBreakpointManager()).restoreLastRemovedBreakpoint()); }); }
createUIComponents
295,601
Delegate () { return myDelegate; }
getDelegate
295,602
void (Delegate delegate) { myDelegate = delegate; }
setDelegate
295,603
void (DetailView detailView) { myMasterBreakpointPanel.setDetailView(detailView); }
setDetailView
295,604
void (FocusEvent event) { JComponent compToFocus = null; if (myConditionComboBox != null && myConditionComboBox.getComboBox().isEnabled()) { compToFocus = myConditionComboBox.getEditorComponent(); } else if (breakpointType.getVisibleStandardPanels().contains(XBreakpointType.StandardPanels.ACTIONS)) { compToFocus = myActionsPanel.getDefaultFocusComponent(); } if (compToFocus != null) { IdeFocusManager.findInstance().requestFocus(compToFocus, false); } }
focusGained
295,605
void () { if (myConditionComboBox != null) { myConditionComboBox.setEnabled(myConditionEnabledCheckbox.isSelected()); } }
onCheckboxChanged
295,606
void () { mySubPanels.forEach(XBreakpointPropertiesSubPanel::saveProperties); if (myConditionComboBox != null) { XExpression expression = myConditionComboBox.getExpression(); XExpression condition = !XDebuggerUtilImpl.isEmptyExpression(expression) ? expression : null; myBreakpoint.setConditionEnabled(condition == null || myConditionEnabledCheckbox.isSelected()); myBreakpoint.setConditionExpression(condition); myConditionComboBox.saveTextInHistory(); } for (XBreakpointCustomPropertiesPanel customPanel : myCustomPanels) { customPanel.saveTo(myBreakpoint); } myBreakpoint.setEnabled(myEnabledCheckbox.isSelected()); }
saveProperties
295,607
void () { mySubPanels.forEach(XBreakpointPropertiesSubPanel::loadProperties); if (myConditionComboBox != null) { XExpression condition = myBreakpoint.getConditionExpressionInt(); myConditionComboBox.setExpression(condition); boolean hideCheckbox = !myShowAllOptions && condition == null; myConditionEnabledCheckbox.setSelected(hideCheckbox || (myBreakpoint.isConditionEnabled() && condition != null)); myConditionCheckboxPanel.removeAll(); if (hideCheckbox) { JBLabel label = new JBLabel(XDebuggerBundle.message("xbreakpoints.condition.checkbox")); label.setBorder(JBUI.Borders.empty(0, 4, 4, 0)); label.setLabelFor(myConditionComboBox.getComboBox()); myConditionCheckboxPanel.add(label); myConditionExpressionPanel.setBorder(JBUI.Borders.emptyLeft(3)); } else { myConditionCheckboxPanel.add(myConditionEnabledCheckbox); myConditionExpressionPanel.setBorder(JBUI.Borders.emptyLeft(UIUtil.getCheckBoxTextHorizontalOffset(myConditionEnabledCheckbox))); } onCheckboxChanged(); } for (XBreakpointCustomPropertiesPanel customPanel : myCustomPanels) { customPanel.loadFrom(myBreakpoint); } myEnabledCheckbox.setSelected(myBreakpoint.isEnabled()); myBreakpointNameLabel.setText(XBreakpointUtil.getShortText(myBreakpoint)); }
loadProperties
295,608
JPanel () { return myMainPanel; }
getMainPanel
295,609
void () { myActionsPanel.dispose(); myCustomPanels.forEach(Disposer::dispose); myCustomPanels.clear(); }
dispose
295,610
void (DetailView detailView) { myDetailViewDelegate = detailView; myDetailView = new MyDetailView(myDetailViewDelegate.getEditorState()); myDetailController.setDetailView(myDetailView); }
setDetailView
295,611
Object () { return ((BreakpointItem)myComboBox.getSelectedItem()).getBreakpoint(); }
getSelectedBreakpoint
295,612
void (DetailView.PreviewEditorState pushed) { if (pushed.getFile() != null) { myDetailViewDelegate .navigateInPreviewEditor( new DetailView.PreviewEditorState(pushed.getFile(), pushed.getNavigate(), pushed.getAttributes())); } else { myDetailViewDelegate.clearEditor(); } }
pop
295,613
void (Object breakpoint) { myComboBox.setSelectedItem(findItem(breakpoint, myBreakpointItems)); }
setSelectedBreakpoint
295,614
ItemWrapper[] () { if (hackedSelection.get() == null) { return new ItemWrapper[0]; } return new ItemWrapper[]{((BreakpointItem) hackedSelection.get())}; }
getSelectedItems
295,615
JLabel () { return fake; }
getPathLabel
295,616
void (PopupMenuEvent e) { }
popupMenuWillBecomeVisible
295,617
void (PopupMenuEvent e) { if (myDetailView != null) { myDetailView.clearEditor(); } }
popupMenuWillBecomeInvisible
295,618
void (PopupMenuEvent e) { if (myDetailView != null) { myDetailView.clearEditor(); } }
popupMenuCanceled
295,619
void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { super.customizeCellRenderer(list, value, index, selected, hasFocus); if (selected) { if (hackedSelection.get() != value) { hackedSelection.set(value); myDetailController.updateDetailView(); } } }
customizeCellRenderer
295,620
void (ItemEvent event) { myDelegate.breakpointChosen(project, ((BreakpointItem)myComboBox.getSelectedItem())); }
itemStateChanged
295,621
BreakpointItem (Object baseBreakpoint, List<? extends BreakpointItem> breakpointItems) { BreakpointItem breakpointItem = null; for (BreakpointItem item : breakpointItems) { if (item.getBreakpoint() == baseBreakpoint) { breakpointItem = item; break; } } return breakpointItem; }
findItem
295,622
JComponent () { return myComboBox; }
getComponent
295,623
Editor () { return myDetailViewDelegate.getEditor(); }
getEditor
295,624
void (PreviewEditorState editorState) { if (myDetailViewDelegate != null) { myDetailViewDelegate.navigateInPreviewEditor(editorState); } }
navigateInPreviewEditor
295,625
JPanel () { return null; }
getPropertiesPanel
295,626
void (@Nullable JPanel panel) { }
setPropertiesPanel
295,627
void () { pop(myPushed); }
clearEditor
295,628
PreviewEditorState () { return myDetailViewDelegate.getEditorState(); }
getEditorState
295,629
void (ItemWrapper currentItem) { myCurrentItem = currentItem; }
setCurrentItem
295,630
ItemWrapper () { return myCurrentItem; }
getCurrentItem
295,631
boolean () { return true; }
hasEditorOnly
295,632
void (Project project, final XBreakpointManager breakpointManager, @NotNull XBreakpointBase breakpoint) { super.init(project, breakpointManager, breakpoint); mySuspendCheckBox.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent actionEvent) { boolean selected = mySuspendCheckBox.isSelected(); if (myBreakpoint.getType().isSuspendThreadSupported()) { changeEnableState(selected); } if (myDelegate != null && !selected) { myDelegate.showMoreOptionsIfNeeded(); } } }); if (!myBreakpoint.getType().isSuspendThreadSupported()) { return; } updateSuspendPolicyFont(); ItemListener suspendPolicyChangeListener = new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { updateMakeDefaultEnableState(); } }; updateMakeDefaultEnableState(); mySuspendAll.addItemListener(suspendPolicyChangeListener); mySuspendThread.addItemListener(suspendPolicyChangeListener); myMakeDefaultButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { SuspendPolicy suspendPolicy = getSelectedSuspendPolicy(); ((XBreakpointManagerImpl)myBreakpointManager).getBreakpointDefaults(myBreakpointType).setSuspendPolicy(suspendPolicy); updateSuspendPolicyFont(); JRadioButton comp = SuspendPolicy.THREAD == suspendPolicy ? mySuspendThread : mySuspendAll; IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(comp, true)); myMakeDefaultButton.setEnabled(false); } }); }
init
295,633
void (ActionEvent actionEvent) { boolean selected = mySuspendCheckBox.isSelected(); if (myBreakpoint.getType().isSuspendThreadSupported()) { changeEnableState(selected); } if (myDelegate != null && !selected) { myDelegate.showMoreOptionsIfNeeded(); } }
actionPerformed
295,634
void (ItemEvent e) { updateMakeDefaultEnableState(); }
itemStateChanged
295,635
void (ActionEvent e) { SuspendPolicy suspendPolicy = getSelectedSuspendPolicy(); ((XBreakpointManagerImpl)myBreakpointManager).getBreakpointDefaults(myBreakpointType).setSuspendPolicy(suspendPolicy); updateSuspendPolicyFont(); JRadioButton comp = SuspendPolicy.THREAD == suspendPolicy ? mySuspendThread : mySuspendAll; IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(comp, true)); myMakeDefaultButton.setEnabled(false); }
actionPerformed
295,636
void () { boolean enabled = !getSelectedSuspendPolicy().equals( ((XBreakpointManagerImpl)myBreakpointManager).getBreakpointDefaults(myBreakpointType).getSuspendPolicy()); ((CardLayout)myMakeDefaultPanel.getLayout()).show(myMakeDefaultPanel, enabled ? "Show" : "Hide"); myMakeDefaultButton.setVisible(enabled); myMakeDefaultButton.setEnabled(enabled); }
updateMakeDefaultEnableState
295,637
void () { SuspendPolicy defaultPolicy = ((XBreakpointManagerImpl)myBreakpointManager).getBreakpointDefaults(myBreakpointType).getSuspendPolicy(); Font font = mySuspendAll.getFont().deriveFont(Font.PLAIN); Font boldFont = font.deriveFont(Font.BOLD); mySuspendAll.setFont(SuspendPolicy.ALL.equals(defaultPolicy) ? boldFont : font); mySuspendThread.setFont(SuspendPolicy.THREAD.equals(defaultPolicy) ? boldFont : font); }
updateSuspendPolicyFont
295,638
void (boolean selected) { mySuspendAll.setEnabled(selected); mySuspendThread.setEnabled(selected); if (selected) { updateMakeDefaultEnableState(); } else { myMakeDefaultButton.setEnabled(false); } }
changeEnableState
295,639
void (boolean suspendThreadSupported) { mySuspendAll.setVisible(suspendThreadSupported); mySuspendThread.setVisible(suspendThreadSupported); myMakeDefaultPanel.setVisible(suspendThreadSupported); if (!suspendThreadSupported) { mySuspendCheckBox.setText(XDebuggerBundle.message("suspend.policy.panel.suspend.execution")); } }
changeVisibleState
295,640
boolean (boolean showAllOptions) { myContentPane.setBorder(null); return false; }
lightVariant
295,641
void () { myContentPane.getParent().remove(myContentPane); }
hide
295,642
SuspendPolicy () { if (!mySuspendCheckBox.isSelected()) { return SuspendPolicy.NONE; } else if (myBreakpoint.getType().isSuspendThreadSupported()) { return mySuspendAll.isSelected() ? SuspendPolicy.ALL : SuspendPolicy.THREAD; } else { return myBreakpoint.getType().getDefaultSuspendPolicy(); } }
getSelectedSuspendPolicy
295,643
Delegate () { return myDelegate; }
getDelegate
295,644
void (Delegate delegate) { myDelegate = delegate; }
setDelegate
295,645
Icon (final boolean isOpen) { return AllIcons.Nodes.Folder; }
getIcon
295,646
String () { return myName; }
getName
295,647
boolean () { return myIsDefault; }
isDefault
295,648
int () { return 1200; }
getPriority
295,649
boolean () { return true; }
isAlwaysEnabled
295,650
XBreakpointCustomGroup (@NotNull final B breakpoint, @NotNull final Collection<? extends XBreakpointCustomGroup> groups) { if (!(breakpoint instanceof XBreakpointBase)) { return null; } String name = ((XBreakpointBase<?, ?, ?>)breakpoint).getGroup(); if (StringUtil.isEmpty(name)) { return null; } return new XBreakpointCustomGroup(name, ((XBreakpointBase<?, ?, ?>)breakpoint).getProject()); }
getGroup
295,651
Icon () { return AllIcons.Nodes.Folder; }
getIcon
295,652
boolean () { return true; }
isAlwaysEnabled
295,653
int () { return XBreakpointsGroupingPriorities.BY_TYPE; }
getPriority
295,654
XBreakpointTypeGroup (@NotNull B b, @NotNull Collection<? extends XBreakpointTypeGroup> groups) { if (b instanceof XBreakpoint breakpoint) { for (XBreakpointTypeGroup group : groups) { if (group.getBreakpointType() == breakpoint.getType()) { return group; } } return new XBreakpointTypeGroup(breakpoint.getType()); } return null; }
getGroup
295,655
Icon (final boolean isOpen) { return VirtualFilePresentation.getIcon(myFile); }
getIcon
295,656
String () { return myFile.getPresentableUrl(); }
getName
295,657
VirtualFile () { return myFile; }
getFile
295,658
boolean (Object obj) { return obj instanceof XBreakpointFileGroup && myFile.equals(((XBreakpointFileGroup)obj).myFile); }
equals
295,659
int () { return XBreakpointsGroupingPriorities.BY_FILE; }
getPriority
295,660
XBreakpointFileGroup (@NotNull final B breakpoint, @NotNull final Collection<? extends XBreakpointFileGroup> groups) { if (!(breakpoint instanceof XLineBreakpoint)) { return null; } XSourcePosition position = ((XLineBreakpoint<?>)breakpoint).getSourcePosition(); if (position == null) return null; VirtualFile file = position.getFile(); for (XBreakpointFileGroup group : groups) { if (group.getFile().equals(file)) { return group; } } return new XBreakpointFileGroup(file); }
getGroup
295,661
Icon () { return AllIcons.Actions.GroupByFile; }
getIcon
295,662
String () { return myBreakpointType.getTitle(); }
getName
295,663
XBreakpointType () { return myBreakpointType; }
getBreakpointType
295,664
Icon (boolean isOpen) { return myBreakpointType.getEnabledIcon(); }
getIcon
295,665
int (XBreakpointGroup o) { if (getName().equals(o.getName())) { return 0; } if (o instanceof XBreakpointTypeGroup) { if (((XBreakpointTypeGroup)o).myBreakpointType instanceof XLineBreakpointType) { if (myBreakpointType instanceof XLineBreakpointType) { int res = ((XLineBreakpointType<?>)((XBreakpointTypeGroup)o).myBreakpointType).getPriority() - ((XLineBreakpointType<?>)myBreakpointType).getPriority(); if (res != 0) { return res; } } else { // line breakpoints should be on top return 1; } } else if (myBreakpointType instanceof XLineBreakpointType) { return -1; } return Long.compare(indexOfType(myBreakpointType), indexOfType(((XBreakpointTypeGroup)o).getBreakpointType())); } return -o.compareTo(this); }
compareTo
295,666
long (XBreakpointType type) { return XBreakpointUtil.breakpointTypes().indexOf(type).orElse(-1); }
indexOfType
295,667
void (Project project, Object value, boolean selected, boolean expanded, ColoredTreeCellRenderer renderer) { if (value instanceof BreakpointItemNode node) { BreakpointItem breakpoint = node.getBreakpointItem(); breakpoint.setupRenderer(renderer, project, selected); } else if (value instanceof BreakpointsGroupNode) { XBreakpointGroup group = ((BreakpointsGroupNode<?>)value).getGroup(); renderer.setIcon(group.getIcon(expanded)); if (group instanceof XBreakpointCustomGroup && ((XBreakpointCustomGroup)group).isDefault()) { renderer.append(group.getName(), SIMPLE_CELL_ATTRIBUTES_BOLD); } else { renderer.append(group.getName(), SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES); } } }
customizeRenderer
295,668
void (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { BreakpointsTreeCellRenderer.customizeRenderer(myProject, value, selected, expanded, getTextRenderer()); }
customizeRenderer
295,669
void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { customizeRenderer(myProject, value, selected, expanded, this); }
customizeCellRenderer
295,670
G () { return myGroup; }
getGroup
295,671
int () { return myLevel; }
getLevel
295,672
BreakpointItem () { return myBreakpoint; }
getBreakpointItem
295,673
JTree () { return myTreeView; }
getTreeView
295,674
void (JTree treeView) { myTreeView = treeView; myTreeView.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { @Override public void valueChanged(TreeSelectionEvent event) { selectionChanged(); } }); if (treeView instanceof BreakpointsCheckboxTree) { ((BreakpointsCheckboxTree)treeView).setDelegate(this); } myTreeView.setShowsRootHandles(!myGroupingRules.isEmpty()); }
setTreeView
295,675
void (TreeSelectionEvent event) { selectionChanged(); }
valueChanged
295,676
void () { if (myInBuild) return; selectionChangedImpl(); }
selectionChanged
295,677
void () { }
selectionChangedImpl
295,678
void (CheckedTreeNode node) { if (myInBuild) return; nodeStateDidChangeImpl(node); }
nodeStateDidChange
295,679
void (CheckedTreeNode node) { if (node instanceof BreakpointItemNode) { ((BreakpointItemNode)node).getBreakpointItem().setEnabled(node.isChecked()); } }
nodeStateDidChangeImpl
295,680
void (CheckedTreeNode node) { if (myInBuild) return; nodeStateWillChangeImpl(node); }
nodeStateWillChange
295,681
void (CheckedTreeNode node) { }
nodeStateWillChangeImpl
295,682
void (final Collection<? extends XBreakpointGroupingRule> groupingRules) { myGroupingRules = new ArrayList<>(groupingRules); }
setGroupingRulesInternal
295,683
void (@NotNull Collection<? extends BreakpointItem> breakpoints) { final TreeState state = TreeState.createOn(myTreeView, myRoot); state.setScrollToSelection(false); myRoot.removeAllChildren(); myNodes.clear(); for (BreakpointItem breakpoint : breakpoints) { BreakpointItemNode node = new BreakpointItemNode(breakpoint); CheckedTreeNode parent = getParentNode(breakpoint); parent.add(node); myNodes.put(breakpoint, node); } TreeUtil.sortRecursively(myRoot, COMPARATOR); myInBuild = true; ((DefaultTreeModel)(myTreeView.getModel())).nodeStructureChanged(myRoot); state.applyTo(myTreeView, myRoot); myInBuild = false; }
buildTree
295,684
CheckedTreeNode (final BreakpointItem breakpoint) { CheckedTreeNode parent = myRoot; for (int i = 0; i < myGroupingRules.size(); i++) { XBreakpointGroup group = myGroupingRules.get(i).getGroup(breakpoint.getBreakpoint(), Collections.emptyList()); if (group != null) { parent = getOrCreateGroupNode(parent, group, i); if (breakpoint.isEnabled()) { parent.setChecked(true); } } } return parent; }
getParentNode
295,685
Collection<XBreakpointGroup> (CheckedTreeNode parent) { Collection<XBreakpointGroup> nodes = new ArrayList<>(); Enumeration children = parent.children(); while (children.hasMoreElements()) { Object element = children.nextElement(); if (element instanceof BreakpointsGroupNode) { nodes.add(((BreakpointsGroupNode<?>)element).getGroup()); } } return nodes; }
getGroupNodes
295,686
BreakpointsGroupNode (CheckedTreeNode parent, final XBreakpointGroup group, final int level) { Enumeration children = parent.children(); while (children.hasMoreElements()) { Object element = children.nextElement(); if (element instanceof BreakpointsGroupNode) { XBreakpointGroup groupFound = ((BreakpointsGroupNode<?>)element).getGroup(); if (groupFound.equals(group)) { return (BreakpointsGroupNode)element; } } } BreakpointsGroupNode groupNode = new BreakpointsGroupNode<>(group, level); parent.add(groupNode); return groupNode; }
getOrCreateGroupNode
295,687
void (Collection<? extends XBreakpointGroupingRule> groupingRules) { setGroupingRulesInternal(groupingRules); rebuildTree(new ArrayList<>(myNodes.keySet())); }
setGroupingRules
295,688
void (Collection<? extends BreakpointItem> items) { List<BreakpointItem> selectedBreakpoints = getSelectedBreakpoints(false); TreePath path = myTreeView.getSelectionPath(); buildTree(items); if (myTreeView.getRowForPath(path) == -1 && !selectedBreakpoints.isEmpty()) { selectBreakpointItem(selectedBreakpoints.get(0), path); } else { selectBreakpointItem(null, path); } }
rebuildTree
295,689
List<BreakpointItem> (boolean traverse) { TreePath[] selectionPaths = myTreeView.getSelectionPaths(); if (selectionPaths == null || selectionPaths.length == 0) return Collections.emptyList(); final ArrayList<BreakpointItem> list = new ArrayList<>(); for (TreePath selectionPath : selectionPaths) { TreeNode startNode = (TreeNode)selectionPath.getLastPathComponent(); if (traverse) { TreeUtil.treeNodeTraverser(startNode).traverse(TreeTraversal.PRE_ORDER_DFS).processEach(node -> { if (node instanceof BreakpointItemNode) { list.add(((BreakpointItemNode)node).getBreakpointItem()); } return true; }); } else { if (startNode instanceof BreakpointItemNode) { list.add(((BreakpointItemNode)startNode).getBreakpointItem()); } } } return list; }
getSelectedBreakpoints
295,690
void (@Nullable final BreakpointItem breakpoint, TreePath path) { BreakpointItemNode node = myNodes.get(breakpoint); if (node != null) { path = TreeUtil.getPathFromRoot(node); } TreeUtil.selectPath(myTreeView, path, false); }
selectBreakpointItem
295,691
CheckedTreeNode () { return myRoot; }
getRoot
295,692
void () { TreeUtil.promiseSelectFirstLeaf(myTreeView); }
selectFirstBreakpointItem
295,693
void (Project project) { final TreePath[] paths = myTreeView.getSelectionPaths(); if (paths == null) return; final List<BreakpointItem> breakpoints = getSelectedBreakpoints(true); for (TreePath path : paths) { Object node = path.getLastPathComponent(); if (node instanceof BreakpointItemNode) { final BreakpointItem item = ((BreakpointItemNode)node).getBreakpointItem(); if (!item.allowedToRemove()) { TreeUtil.unselectPath(myTreeView, path); breakpoints.remove(item); } } } if (breakpoints.isEmpty()) return; TreeUtil.removeSelected(myTreeView); for (BreakpointItem breakpoint : breakpoints) { breakpoint.removed(project); } }
removeSelectedBreakpoints
295,694
int (final TreeNode o1, final TreeNode o2) { if (o1 instanceof BreakpointItemNode && o2 instanceof BreakpointItemNode) { BreakpointItem b1 = ((BreakpointItemNode)o1).getBreakpointItem(); BreakpointItem b2 = ((BreakpointItemNode)o2).getBreakpointItem(); boolean default1 = b1.isDefaultBreakpoint(); boolean default2 = b2.isDefaultBreakpoint(); if (default1 && !default2) return -1; if (!default1 && default2) return 1; return b1.compareTo(b2); } if (o1 instanceof BreakpointsGroupNode group1 && o2 instanceof BreakpointsGroupNode group2) { if (group1.getLevel() != group2.getLevel()) { return group1.getLevel() - group2.getLevel(); } return group1.getGroup().compareTo(group2.getGroup()); } return o1 instanceof BreakpointsGroupNode ? -1 : 1; }
compare
295,695
void (CheckedTreeNode node) { super.nodeStateWillChange(node); if (myDelegate != null) { myDelegate.nodeStateWillChange(node); } }
nodeStateWillChange
295,696
void (CheckedTreeNode node) { super.onNodeStateChanged(node); if (myDelegate != null) { myDelegate.nodeStateDidChange(node); } }
onNodeStateChanged
295,697
void (Delegate delegate) { myDelegate = delegate; }
setDelegate
295,698
void () { TreeSpeedSearch.installOn(this, true, path -> { Object node = path.getLastPathComponent(); if (node instanceof BreakpointItemNode) { return ((BreakpointItemNode)node).getBreakpointItem().speedSearchText(); } else if (node instanceof BreakpointsGroupNode) { return ((BreakpointsGroupNode<?>)node).getGroup().getName(); } return ""; }); }
installSpeedSearch
295,699
String (Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof BreakpointItemNode) { final BreakpointItem breakpointItem = ((BreakpointItemNode)value).getBreakpointItem(); final String displayText = breakpointItem != null? breakpointItem.getDisplayText() : null; if (!StringUtil.isEmptyOrSpaces(displayText)) { return displayText; } } return super.convertValueToText(value, selected, expanded, leaf, row, hasFocus); }
convertValueToText