Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
255,900 | boolean (@NotNull AnActionEvent e) { return getModel().isShowDifferent(); } | isSelected |
255,901 | void (boolean state) { getModel().setShowDifferent(state); } | updateState |
255,902 | boolean (@NotNull AnActionEvent e) { return getModel().isShowNewOnTarget(); } | isSelected |
255,903 | void (boolean state) { getModel().setShowNewOnTarget(state); } | updateState |
255,904 | void (@NotNull AnActionEvent e) { myModel.setCompareMode(myMode); myModel.reloadModel(false); } | actionPerformed |
255,905 | void (@NotNull AnActionEvent e) { final boolean on = myModel.getCompareMode() == myMode; e.getPresentation().setIcon(on ? ON : OFF); e.getPresentation().setSelectedIcon(on ? ON_SELECTED : OFF); } | update |
255,906 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,907 | void (DirDiffTableModel model, JComponent panel) { for (AnAction action : myActions) { setUp(model, panel, action); } } | setUp |
255,908 | void (DirDiffTableModel model, JComponent panel, AnAction action) { if (action instanceof ShortcutProvider) { final ShortcutSet shortcut = ((ShortcutProvider)action).getShortcut(); if (shortcut != null) { action.registerCustomShortcutSet(shortcut, panel); } } if (action instanceof DirDiffModelHolder) { ((DirDiffModelHo... | setUp |
255,909 | DirDiffTableModel () { return myModel; } | getModel |
255,910 | void (@NotNull AnActionEvent e, boolean state) { updateState(state); if (isReloadNeeded()) { if (isFullReload()) { getModel().reloadModel(true); } else { if (state) { getModel().applySettings(); } else { getModel().applyRemove(); } } } getModel().updateFromUI(); } | setSelected |
255,911 | boolean () { return false; } | isFullReload |
255,912 | boolean () { return true; } | isReloadNeeded |
255,913 | void (@NotNull AnActionEvent e) { super.update(e); e.getPresentation().setEnabled(!getModel().isUpdating()); } | update |
255,914 | ShortcutSet () { return getShortcutSet(); } | getShortcut |
255,915 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,916 | boolean (@NotNull AnActionEvent e) { return getModel().isShowEqual(); } | isSelected |
255,917 | void (boolean state) { getModel().setShowEqual(state); } | updateState |
255,918 | void (@NotNull AnActionEvent e) { myButton.doClick(); } | actionPerformed |
255,919 | void (@NotNull AnActionEvent e) { super.update(e); getTemplatePresentation().setText(mySettings.compareMode.getPresentableName()); e.getPresentation().setText(mySettings.compareMode.getPresentableName()); e.getPresentation().setEnabledAndVisible(mySettings.showCompareModes); } | update |
255,920 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,921 | JComponent (@NotNull Presentation presentation, @NotNull String place) { final JLabel label = new JLabel(DiffBundle.message("compare.by")); label.setDisplayedMnemonicIndex(0); myButton = (JButton)super.createCustomComponent(presentation, place).getComponent(0); return JBUI.Panels.simplePanel(myButton) .addToLeft(label)... | createCustomComponent |
255,922 | DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { return myGroup; } | createPopupActionGroup |
255,923 | ShortcutSet () { return CustomShortcutSet.fromString("alt C"); } | getShortcut |
255,924 | boolean (@NotNull AnActionEvent e) { return getModel().isShowNewOnSource(); } | isSelected |
255,925 | void (boolean state) { getModel().setShowNewOnSource(state); } | updateState |
255,926 | void (@NotNull AnActionEvent e) { super.update(e); if (!e.getPresentation().isEnabled()) { return; } boolean enabled = e.getData(CommonDataKeys.EDITOR) == null || e.isFromActionToolbar(); enabled &= !JBIterable.from(mySelectedOnly ? getModel().getSelectedElements() : getModel().getElements()) .filter(d -> d.getOperatio... | update |
255,927 | void (boolean state) { if (mySelectedOnly) { getModel().synchronizeSelected(); } else { getModel().synchronizeAll(); } } | updateState |
255,928 | boolean (@NotNull AnActionEvent e) { return false; } | isSelected |
255,929 | boolean () { return false; } | isReloadNeeded |
255,930 | void (@NotNull AnActionEvent e) { final DirDiffTableModel model = SetOperationToBase.getModel(e); final JTable table = SetOperationToBase.getTable(e); assert model != null && table != null; for (DirDiffElementImpl element : model.getSelectedElements()) { element.setOperation(DirDiffOperation.NONE); } table.repaint(); } | actionPerformed |
255,931 | void (@NotNull AnActionEvent e) { final DirDiffTableModel model = SetOperationToBase.getModel(e); final JTable table = SetOperationToBase.getTable(e); if (table != null && model != null && model.isOperationsEnabled()) { for (DirDiffElementImpl element : model.getSelectedElements()) { if (element.getOperation() != DirDi... | update |
255,932 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,933 | boolean (DirDiffElement element) { return true; } | isEnabledFor |
255,934 | DirDiffOperation (DirDiffElementImpl element) { if (element.isSource()) { return DirDiffOperation.DELETE; } else { return DirDiffOperation.COPY_FROM; } } | getOperation |
255,935 | DirDiffOperation (DirDiffElementImpl element) { return DirDiffOperation.COPY_FROM; } | getOperation |
255,936 | boolean (DirDiffElement element) { return element.getTarget() != null; } | isEnabledFor |
255,937 | DirDiffOperation (DirDiffElementImpl element) { return element.getDefaultOperation(); } | getOperation |
255,938 | boolean (DirDiffElement element) { return true; } | isEnabledFor |
255,939 | void (@NotNull AnActionEvent e) { DirDiffTableModel model = SetOperationToBase.getModel(e); if (model == null) return; for (DirDiffElementImpl element : model.getSelectedElements()) { if (isChangedOrEqual(element)) { model.setReplacement(element, null); } } model.reloadModel(false); } | actionPerformed |
255,940 | void (@NotNull AnActionEvent e) { DirDiffTableModel model = SetOperationToBase.getModel(e); e.getPresentation().setEnabledAndVisible(model != null && model.getSelectedElements().stream().anyMatch( it -> isChangedOrEqual(it) && Objects.equals(model.getReplacementName(it), it.getTargetName()) )); } | update |
255,941 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,942 | boolean (DirDiffElementImpl element) { return element.getType() == DiffType.CHANGED || element.getType() == DiffType.EQUAL; } | isChangedOrEqual |
255,943 | boolean (@NotNull AnActionEvent e) { return isWarnWhenDeleteItems(); } | isSelected |
255,944 | void (@NotNull AnActionEvent e, boolean state) { setWarnWhenDeleteItems(state); } | setSelected |
255,945 | void (@NotNull AnActionEvent e) { final DirDiffTableModel model = SetOperationToBase.getModel(e); e.getPresentation().setEnabled(model != null && model.isOperationsEnabled()); } | update |
255,946 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,947 | boolean () { return PropertiesComponent.getInstance().getBoolean(PROPERTY_NAME); } | isWarnWhenDeleteItems |
255,948 | void (boolean warn) { PropertiesComponent.getInstance().setValue(PROPERTY_NAME, warn); } | setWarnWhenDeleteItems |
255,949 | void (@NotNull AnActionEvent e) { final DirDiffTableModel model = getModel(e); final JTable table = getTable(e); assert model != null && table != null; for (DirDiffElementImpl element : model.getSelectedElements()) { if (isEnabledFor(element)) { element.setOperation(getOperation(element)); } else { element.setOperation... | actionPerformed |
255,950 | void (@NotNull AnActionEvent e) { final DirDiffTableModel model = getModel(e); final JTable table = getTable(e); if (table != null && model != null && model.isOperationsEnabled()) { for (DirDiffElementImpl element : model.getSelectedElements()) { if (isEnabledFor(element)) { e.getPresentation().setEnabled(true); return... | update |
255,951 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,952 | JTable (AnActionEvent e) { return e.getData(DirDiffPanel.DIR_DIFF_TABLE); } | getTable |
255,953 | DirDiffTableModel (AnActionEvent e) { return e.getData(DirDiffPanel.DIR_DIFF_MODEL); } | getModel |
255,954 | void (@NotNull AnActionEvent e) { DirDiffTableModel model = SetOperationToBase.getModel(e); if (model == null) return; Couple<DirDiffElementImpl> couple = getSelectedSourceAndTarget(model); if (couple == null) return; model.setReplacement(couple.first, couple.second); model.reloadModel(false); } | actionPerformed |
255,955 | void (@NotNull AnActionEvent e) { DirDiffTableModel model = SetOperationToBase.getModel(e); if (model != null) { Couple<DirDiffElementImpl> target = getSelectedSourceAndTarget(model); if (target != null) { e.getPresentation().setEnabled(true); e.getPresentation().setDescription(DiffBundle.message("compare.0.with.1", ta... | update |
255,956 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
255,957 | Couple<DirDiffElementImpl> (DirDiffTableModel model) { List<DirDiffElementImpl> elements = model.getSelectedElements(); if (elements.size() != 2) return null; DirDiffElementImpl source = ContainerUtil.find(elements, DirDiffElementImpl::isSource); DirDiffElementImpl target = ContainerUtil.find(elements, DirDiffElementIm... | getSelectedSourceAndTarget |
255,958 | boolean (DirDiffElement element) { return true; } | isEnabledFor |
255,959 | DirDiffOperation (DirDiffElementImpl element) { if (element.isTarget()) { return DirDiffOperation.DELETE; } else { return DirDiffOperation.COPY_TO; } } | getOperation |
255,960 | DirDiffOperation (DirDiffElementImpl element) { return DirDiffOperation.COPY_TO; } | getOperation |
255,961 | boolean (DirDiffElement element) { return element.getSource() != null; } | isEnabledFor |
255,962 | DirDiffOperation (DirDiffElementImpl element) { return DirDiffOperation.DELETE; } | getOperation |
255,963 | boolean (DirDiffElement element) { return element.getSource() == null || element.getTarget() == null; } | isEnabledFor |
255,964 | JComponent () { return myPanel; } | getPanel |
255,965 | void () { List<SimpleThreesideDiffChange> changes = myViewer.getChanges(); for (SimpleThreesideDiffChange change : changes) { change.reinstallHighlighters(); } myViewer.repaint(); } | updateView |
255,966 | void (final EditorColorsScheme highlighterSettings) { for (EditorEx editorEx : myViewer.getEditors()) { editorEx.setColorsScheme(editorEx.createBoundColorSchemeDelegate(highlighterSettings)); editorEx.getColorsScheme().setAttributes(EditorColors.FOLDED_TEXT_ATTRIBUTES, null); editorEx.reinitSettings(); } } | setColorScheme |
255,967 | List<DiffContent> () { return myContents; } | getContents |
255,968 | List<String> () { return Arrays.asList(null, null, null); } | getContentTitles |
255,969 | String () { return DiffBundle.message("merge.color.options.dialog.title"); } | getTitle |
255,970 | Project () { return null; } | getProject |
255,971 | boolean () { return false; } | isWindowFocused |
255,972 | boolean () { return false; } | isFocusedInWindow |
255,973 | void () { } | requestFocusInWindow |
255,974 | void (@NotNull final ColorAndFontSettingsListener listener) { myDispatcher.addListener(listener); } | addListener |
255,975 | void (@NotNull EditorMouseEvent e) { int line = e.getLogicalPosition().line; Cursor cursor = getChange(mySide, line) != null || getFoldRegion(mySide, line) != null ? Cursor.getPredefinedCursor(Cursor.HAND_CURSOR) : null; ((EditorEx)e.getEditor()).setCustomCursor(DiffPreviewPanel.class, cursor); } | mouseMoved |
255,976 | void (@NotNull EditorMouseEvent e) { selectColorForLine(mySide, e.getLogicalPosition().line); } | mouseClicked |
255,977 | void (@NotNull CaretEvent e) { selectColorForLine(mySide, e.getNewPosition().line); } | caretPositionChanged |
255,978 | void (@NotNull ThreeSide side, int line) { SimpleThreesideDiffChange change = getChange(side, line); if (change != null) { TextDiffTypeImpl diffType = ObjectUtils.tryCast(change.getDiffType(), TextDiffTypeImpl.class); if (diffType != null) { myDispatcher.getMulticaster().selectionInPreviewChanged(diffType.getKey().getE... | selectColorForLine |
255,979 | SimpleThreesideDiffChange (@NotNull ThreeSide side, int line) { for (SimpleThreesideDiffChange change : myViewer.getChanges()) { int startLine = change.getStartLine(side); int endLine = change.getEndLine(side); if (DiffUtil.isSelectedByLine(line, startLine, endLine) && change.isChange(side)) { return change; } } return... | getChange |
255,980 | FoldRegion (@NotNull ThreeSide side, int line) { EditorEx editor = myViewer.getEditor(side); DocumentEx document = editor.getDocument(); for (FoldRegion region : editor.getFoldingModel().getAllFoldRegions()) { if (region.isExpanded()) continue; int line1 = document.getLineNumber(region.getStartOffset()); int line2 = do... | getFoldRegion |
255,981 | void (final Object selected) { } | blinkSelectedHighlightType |
255,982 | void () { Disposer.dispose(myViewer); } | disposeUIResources |
255,983 | SimpleThreesideDiffViewer () { return myViewer; } | testGetViewer |
255,984 | boolean () { return true; } | forceRediffSynchronously |
255,985 | void () { myPanel.repaint(); } | repaint |
255,986 | void (ActionEvent e) { myIgnoredColorPanel.setEnabled(!myInheritIgnoredCheckBox.isSelected()); if (myInheritIgnoredCheckBox.isSelected()) { myIgnoredColorPanel.setSelectedColor(null); } else { Color background = ObjectUtils.notNull(myBackgroundColorPanel.getSelectedColor(), JBColor.WHITE); Color gutterBackground = myOp... | actionPerformed |
255,987 | JComponent () { return this; } | getPanel |
255,988 | void (@NotNull ActionEvent e) { myDispatcher.getMulticaster().onSettingsChanged(e); } | onSettingsChanged |
255,989 | void () { myBackgroundColorPanel.setEnabled(false); myIgnoredColorPanel.setEnabled(false); myStripeMarkColorPanel.setEnabled(false); myInheritIgnoredCheckBox.setEnabled(false); myInheritIgnoredCheckBox.setSelected(false); } | resetDefault |
255,990 | void (@NotNull EditorSchemeAttributeDescriptor attrDescription) { if (!(attrDescription instanceof ColorAndFontDescription description)) return; Color backgroundColor = getBackgroundColor(description); Color ignoredColor = getIgnoredColor(description); Color stripeMarkColor = getStripeMarkColor(description); boolean in... | reset |
255,991 | void (@NotNull EditorSchemeAttributeDescriptor attrDescription, EditorColorsScheme scheme) { if (!(attrDescription instanceof ColorAndFontDescription description)) return; description.setBackgroundChecked(true); description.setForegroundChecked(true); description.setErrorStripeChecked(true); setBackgroundColor(descript... | apply |
255,992 | void (@NotNull Listener listener) { myDispatcher.addListener(listener); } | addListener |
255,993 | Color (@NotNull TextAttributes attributes) { return attributes.getBackgroundColor(); } | getBackgroundColor |
255,994 | Color (@NotNull TextAttributes attributes) { return attributes.getForegroundColor(); } | getIgnoredColor |
255,995 | Color (@NotNull TextAttributes attributes) { return attributes.getErrorStripeColor(); } | getStripeMarkColor |
255,996 | void (@NotNull TextAttributes attributes) { attributes.setBackgroundColor(myBackgroundColorPanel.getSelectedColor()); } | setBackgroundColor |
255,997 | void (@NotNull TextAttributes attributes) { attributes.setForegroundColor(myInheritIgnoredCheckBox.isSelected() ? null : myIgnoredColorPanel.getSelectedColor()); } | setIgnoredColor |
255,998 | void (@NotNull TextAttributes attributes) { attributes.setErrorStripeColor(myStripeMarkColorPanel.getSelectedColor()); } | setStripeMarkColor |
255,999 | NewColorAndFontPanel (@NotNull ColorAndFontOptions options) { final SchemesPanel schemesPanel = new SchemesPanel(options); CompositeColorDescriptionPanel descriptionPanel = new CompositeColorDescriptionPanel(); descriptionPanel.addDescriptionPanel(new ColorAndFontDescriptionPanel(), it -> it instanceof ColorAndFontDesc... | createPanel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.