Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
275,000 | Color (int rootNumber, int rootsCount, @NotNull List<Color> palette) { Color color; int size = palette.size(); if (rootNumber >= size) { double balance = ((double)(rootNumber / size)) / (rootsCount / size); Color mix = ColorUtil.mix(palette.get(rootNumber % size), palette.get((rootNumber + 1) % size), balance); int tones = (int)(Math.abs(balance - 0.5) * 2 * (rootsCount / size) + 1); if (mix instanceof JBColor) { color = JBColor.lazy(() -> new JBColor(ColorUtil.darker(mix, tones), ColorUtil.brighter(mix, 2 * tones))); } else { color = new JBColor(ColorUtil.darker(mix, tones), ColorUtil.brighter(mix, 2 * tones)); } } else { color = palette.get(rootNumber); } return color; } | getColor |
275,001 | Color (@NotNull FilePath path, @NotNull String colorMode) { return getColor(path.getPath(), colorMode); } | getPathColor |
275,002 | Color (@NotNull VirtualFile root, @NotNull String colorMode) { return getColor(root.getPath(), colorMode); } | getRootColor |
275,003 | Color (@NotNull String path, @NotNull String colorMode) { Map<String, Color> paletteToColor = myPath2Palette.getOrDefault(colorMode, myPath2Palette.get(DEFAULT_COLOR_MODE)); Color color = paletteToColor.get(path); if (color == null) { LOG.error("No color record for path " + path + ". All paths: " + paletteToColor); color = getDefaultRootColor(); } return color; } | getColor |
275,004 | Color () { return UIUtil.getTableBackground(); } | getDefaultRootColor |
275,005 | Collection<FilePath> () { return myPaths; } | getPaths |
275,006 | void (Graphics2D g, int x, int width, int height) { g.setColor(myColor); if (isNarrow) { g.fillRect(x, 0, width - JBUIScale.scale(ROOT_INDICATOR_WHITE_WIDTH), height); g.setColor(myBorderColor); g.fillRect(x + width - JBUIScale.scale(ROOT_INDICATOR_WHITE_WIDTH), 0, JBUIScale.scale(ROOT_INDICATOR_WHITE_WIDTH), height); } else { g.fillRect(x, 0, width, height); } } | paintBackground |
275,007 | Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { clear(); FilePath path = (FilePath)value; boolean hovered = row == getHoveredRow(table); myBorderColor = Objects.requireNonNull(((VcsLogGraphTable)table).getStyle(row, column, hasFocus, isSelected, hovered).getBackground()); setForeground(UIUtil.getTableForeground(false, hasFocus)); if (isShowRootNames()) { if (isTextShown(table, value, row, column)) { if (path == null) { append(""); } else { String text = path.getName(); int availableWidth = ((VcsLogGraphTable)table).getRootColumn().getWidth() - VcsLogUiUtil.getHorizontalTextPadding(this); text = VcsLogUiUtil.shortenTextToFit(text, getFontMetrics(VcsLogGraphTable.getTableFont()), availableWidth, 0, StringUtil.ELLIPSIS); append(text); } } isNarrow = false; } else { append(""); isNarrow = true; } if (path == null) { myColor = UIUtil.getTableBackground(isSelected, hasFocus); } else { myColor = myColorManager.getPathColor(path, isNarrow ? VcsLogColorManager.DEFAULT_COLOR_MODE : VcsLogColorManagerFactory.ROOT_OPENED_STATE); } myTooltip = getTooltipText(path, isNarrow); return this; } | getTableCellRendererComponent |
275,008 | VcsLogCellController () { return new VcsLogCellController() { @Override public @Nullable Cursor performMouseClick(int row, @NotNull MouseEvent e) { if (myColorManager.hasMultiplePaths() && myProperties.exists(SHOW_ROOT_NAMES)) { VcsLogUsageTriggerCollector.triggerClick("root.column"); myProperties.set(SHOW_ROOT_NAMES, !myProperties.get(SHOW_ROOT_NAMES)); } return null; } @Override public @NotNull Cursor performMouseMove(int row, @NotNull MouseEvent e) { return Cursor.getPredefinedCursor(Cursor.HAND_CURSOR); } }; } | getCellController |
275,009 | Cursor (int row, @NotNull MouseEvent e) { return Cursor.getPredefinedCursor(Cursor.HAND_CURSOR); } | performMouseMove |
275,010 | void () { setBorderInsets(isShowRootNames() ? getRootNameInsets() : JBUI.emptyInsets()); } | updateInsets |
275,011 | Insets () { return JBUI.emptyInsets(); } | getRootNameInsets |
275,012 | boolean () { return myProperties.exists(SHOW_ROOT_NAMES) && myProperties.get(SHOW_ROOT_NAMES); } | isShowRootNames |
275,013 | boolean (JTable table, Object value, int row, int column) { int readableRow = ScrollingUtil.getReadableRow(table, Math.round(table.getRowHeight() * 0.5f)); if (row < readableRow) { return false; } return row == 0 || readableRow == row || !Objects.equals(value, table.getModel().getValueAt(row - 1, column)); } | isTextShown |
275,014 | void (Color bg) { myBorderColor = bg; } | setBackground |
275,015 | String (MouseEvent event) { return myTooltip; } | getToolTipText |
275,016 | int () { if (!myColorManager.hasMultiplePaths()) { return 0; } if (!isShowRootNames()) { return JBUIScale.scale(ExperimentalUI.isNewUI() ? NEW_UI_ROOT_INDICATOR_WIDTH : ROOT_INDICATOR_WIDTH); } Font tableFont = VcsLogGraphTable.getTableFont(); int textWidth = 0; for (FilePath file : myColorManager.getPaths()) { textWidth = Math.max(getFontMetrics(tableFont).stringWidth(file.getName() + " "), textWidth); } Insets componentInsets = getRootNameInsets(); int insets = componentInsets.left + componentInsets.right; return Math.min(textWidth + insets, JBUIScale.scale(ROOT_NAME_MAX_WIDTH)); } | getColumnWidth |
275,017 | int () { return myDataPack.getVisibleGraph().getVisibleCommitCount(); } | getRowCount |
275,018 | int () { return VcsLogColumnManager.getInstance().getModelColumnsCount(); } | getColumnCount |
275,019 | String (int column) { return getColumn(column).getLocalizedName(); } | getColumnName |
275,020 | Object (int rowIndex, int columnIndex) { return getValueAt(rowIndex, getColumn(columnIndex)); } | getValueAt |
275,021 | void (@NotNull Runnable onLoaded) { myMoreRequested = true; myRequestMore.accept(onLoaded); } | requestToLoadMore |
275,022 | boolean () { return !myMoreRequested && myDataPack.canRequestMore(); } | canRequestMore |
275,023 | VisiblePack () { return myDataPack; } | getVisiblePack |
275,024 | VcsLogData () { return myLogData; } | getLogData |
275,025 | VcsLogUiProperties () { return myProperties; } | getProperties |
275,026 | Integer (int row) { return myDataPack.getVisibleGraph().getRowInfo(row).getCommit(); } | getIdAtRow |
275,027 | List<VcsRef> (int row) { return ((RefsModel)myDataPack.getRefs()).refsToCommit(getIdAtRow(row)); } | getRefsAtRow |
275,028 | List<VcsRef> (int row) { return ContainerUtil.filter(getRefsAtRow(row), ref -> ref.getType().isBranch()); } | getBranchesAtRow |
275,029 | VcsFullCommitDetails (int row) { Integer id = getIdAtRow(row); return myLogData.getCommitDetailsGetter().getCommitData(id); } | getFullDetails |
275,030 | VcsCommitMetadata (int row) { return getCommitMetadata(row, false); } | getCommitMetadata |
275,031 | VcsCommitMetadata (int row, boolean load) { Iterable<Integer> commitsToLoad = load ? getCommitsToLoad(row) : ContainerUtil.emptyList(); return myLogData.getMiniDetailsGetter().getCommitData(getIdAtRow(row), commitsToLoad); } | getCommitMetadata |
275,032 | VcsLogCommitSelection (int[] rows) { return new CommitSelectionImpl(myLogData, myDataPack.getVisibleGraph(), rows); } | createSelection |
275,033 | Iterable<Integer> (int row) { int maxRows = getRowCount(); return () -> new Iterator<>() { private int myRowIndex = Math.max(0, row - UP_PRELOAD_COUNT); @Override public boolean hasNext() { return myRowIndex < row + DOWN_PRELOAD_COUNT && myRowIndex < maxRows; } @Override public Integer next() { int nextRow = myRowIndex; myRowIndex++; return getIdAtRow(nextRow); } @Override public void remove() { throw new UnsupportedOperationException("Removing elements is not supported."); } }; } | getCommitsToLoad |
275,034 | boolean () { return myRowIndex < row + DOWN_PRELOAD_COUNT && myRowIndex < maxRows; } | hasNext |
275,035 | Integer () { int nextRow = myRowIndex; myRowIndex++; return getIdAtRow(nextRow); } | next |
275,036 | void () { throw new UnsupportedOperationException("Removing elements is not supported."); } | remove |
275,037 | int () { return myComponent.getRowCount(); } | getElementCount |
275,038 | ListIterator<Object> (int startingViewIndex) { return new MyRowsList().listIterator(startingViewIndex); } | getElementIterator |
275,039 | int () { return myComponent.getSelectedRow(); } | getSelectedIndex |
275,040 | boolean (Object row, String pattern) { return isMatchingMetadata(pattern, getCommitMetadata((Integer)row)); } | isMatchingElement |
275,041 | boolean (String pattern, @Nullable VcsCommitMetadata metadata) { return isMatchingMetadata(pattern, metadata, getColumnsForSpeedSearch()); } | isMatchingMetadata |
275,042 | boolean (String pattern, @Nullable VcsCommitMetadata metadata, @NotNull List<? extends VcsLogMetadataColumn> columns) { if (metadata == null) return false; return ContainerUtil.exists(columns, column -> compare(column.getValue(myComponent.getModel(), metadata), pattern)); } | isMatchingMetadata |
275,043 | List<VcsLogMetadataColumn> () { return ContainerUtil.filterIsInstance(myComponent.getVisibleColumns(), VcsLogMetadataColumn.class); } | getColumnsForSpeedSearch |
275,044 | void (@Nullable Object row, @NotNull String selectedText) { if (row == null) return; myComponent.jumpToRow((Integer)row, true); } | selectElement |
275,045 | int () { return myComponent.getRowCount(); } | size |
275,046 | Object (int index) { return index; } | get |
275,047 | AsyncProcessIcon () { return new LastRowLoadingIcon(); } | createBusyIcon |
275,048 | Dimension () { Dimension size = super.getPreferredSize(); if (isBusy()) { return new Dimension(size.width, size.height + myBusyIcon.getPreferredSize().height); } return size; } | getPreferredSize |
275,049 | boolean () { return myBusyIcon != null && myBusyIcon.isRunning(); } | isBusy |
275,050 | void (@NotNull Graphics g) { super.paintComponent(g); if (isBusy()) { int preferredHeight = super.getPreferredSize().height; paintFooter(g, 0, preferredHeight, getWidth(), getHeight() - preferredHeight); } } | paintComponent |
275,051 | void (@NotNull Graphics g, int x, int y, int width, int height) { g.setColor(getBackground()); g.fillRect(x, y, width, height); } | paintFooter |
275,052 | Rectangle (@NotNull JComponent container) { Dimension iconSize = getPreferredSize(); return new Rectangle((container.getWidth() - iconSize.width) / 2, container.getPreferredSize().height - iconSize.height, iconSize.width, iconSize.height); } | calculateBounds |
275,053 | boolean (int row, @NotNull MouseEvent e) { return findPrintElement(row, myTable.getPointInCell(e.getPoint(), Commit.INSTANCE)) == null; } | shouldSelectCell |
275,054 | boolean (int row, @NotNull Point pointInCell, @NotNull Point point, boolean now) { JComponent tipComponent = getTooltip(myTable.getValueAt(row, myTable.getColumnViewIndex(Commit.INSTANCE)), pointInCell, row); if (tipComponent != null) { myTable.getExpandableItemsHandler().setEnabled(false); IdeTooltip tooltip = new IdeTooltip(myTable, point, new Wrapper(tipComponent)).setPreferredPosition(Balloon.Position.below); IdeTooltipManager.getInstance().show(tooltip, now); return true; } return false; } | showTooltip |
275,055 | void (@NotNull PrintElement printElement) { if (printElement instanceof NodePrintElement) { VcsLogUsageTriggerCollector.triggerClick("node"); } else if (printElement instanceof EdgePrintElement) { if (((EdgePrintElement)printElement).hasArrow()) { VcsLogUsageTriggerCollector.triggerClick("arrow"); } } } | triggerElementClick |
275,056 | boolean (int modelIndex) { return modelIndex != VcsLogColumnManager.getInstance().getModelIndex(Root.INSTANCE); } | canMoveOrResizeColumn |
275,057 | boolean () { // otherwise sizes are recalculated after each TableColumn re-initialization return false; } | getAutoCreateColumnsFromModel |
275,058 | void () { } | dispose |
275,059 | VcsLogCommitSelection () { return getModel().createSelection(getSelectedRows()); } | getSelection |
275,060 | void () { getEmptyText().setText(VcsLogBundle.message("vcs.log.default.status")); } | updateEmptyText |
275,061 | void (@NotNull Throwable error, @NlsContexts.StatusText @NotNull String defaultText) { String message = ObjectUtils.chooseNotNull(error.getLocalizedMessage(), defaultText); String shortenedMessage = StringUtil.shortenTextWithEllipsis(message, 150, 0, true); getEmptyText().setText(shortenedMessage.replace('\n', ' ')); } | setErrorEmptyText |
275,062 | void (@Nls @NotNull String text, @NotNull Runnable action) { getEmptyText().appendSecondaryText(text, SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> action.run()); } | appendActionToEmptyText |
275,063 | void (@NotNull VisiblePack visiblePack, boolean permGraphChanged) { boolean filtersChanged = !getModel().getVisiblePack().getFilters().equals(visiblePack.getFilters()); SelectionSnapshot previousSelection = getSelectionSnapshot(); getModel().setVisiblePack(visiblePack); previousSelection.restore(visiblePack.getVisibleGraph(), true, permGraphChanged); for (VcsLogHighlighter highlighter : myHighlighters) { highlighter.update(visiblePack, permGraphChanged); } if (!getEmptyText().getText().equals(VcsLogBundle.message("vcs.log.loading.status"))) { updateEmptyText(); } setPaintBusy(false); if (filtersChanged) myInitializedColumns.clear(); reLayout(); } | updateDataPack |
275,064 | void () { List<VcsLogColumn<?>> columnOrder = getColumnOrderFromProperties(); if (columnOrder != null) { TableColumnModel columnModel = getColumnModel(); int columnCount = getVisibleColumnCount(); for (int i = columnCount - 1; i >= 0; i--) { columnModel.removeColumn(columnModel.getColumn(i)); } for (VcsLogColumn<?> column : columnOrder) { myTableColumns.computeIfAbsent(column, (k) -> createTableColumn(column)); columnModel.addColumn(myTableColumns.get(column)); } } reLayout(); } | onColumnOrderSettingChanged |
275,065 | List<Integer> () { List<Integer> columnOrder = new ArrayList<>(); for (int i = 0; i < getVisibleColumnCount(); i++) { columnOrder.add(getColumnModel().getColumn(i).getModelIndex()); } return columnOrder; } | getVisibleColumnIndices |
275,066 | boolean (@NotNull VcsLogColumn<?> column) { for (int i = 0; i < getVisibleColumnCount(); i++) { if (VcsLogColumnManager.getInstance().getColumn(getColumnModel().getColumn(i).getModelIndex()) == column) { return true; } } return false; } | isColumnVisible |
275,067 | int () { return getColumnModel().getColumnCount(); } | getVisibleColumnCount |
275,068 | void (@NotNull VcsLogColumn<?> column) { if (getRowCount() == 0) return; TableColumn tableColumn = getTableColumn(column); if (tableColumn != null) { reLayout(); getModel().fireTableChanged(new TableModelEvent(getModel(), 0, getRowCount() - 1, tableColumn.getModelIndex())); } } | onColumnDataChanged |
275,069 | void () { if (getTableHeader().getResizingColumn() == null) { updateDynamicColumnsWidth(); super.doLayout(); repaint(); } } | reLayout |
275,070 | void (@NotNull VcsLogColumn<?> column) { myInitializedColumns.remove(column); reLayout(); } | forceReLayout |
275,071 | void () { if (getTableHeader().getResizingColumn() == null) { updateDynamicColumnsWidth(); } super.doLayout(); } | doLayout |
275,072 | void (@NotNull VcsLogColumn<?> column) { VcsLogUsageTriggerCollector.triggerColumnReset(myLogData.getProject()); if (VcsLogColumnUtilKt.getWidth(column, myProperties) != -1) { setWidth(column, myProperties, -1); } else { forceReLayout(column); } } | resetColumnWidth |
275,073 | TableColumn (VcsLogColumn<?> column) { TableColumn tableColumn = new TableColumn(VcsLogColumnManager.getInstance().getModelIndex(column)); tableColumn.setResizable(column.isResizable()); tableColumn.setCellRenderer(createColumnRenderer(column)); return tableColumn; } | createTableColumn |
275,074 | void () { Registry.get(ExperimentalUI.KEY).addListener(new RegistryValueListener() { @Override public void afterValueChanged(@NotNull RegistryValue value) { updateColumnRenderers(); setRootColumnSize(); } }, this); } | subscribeOnNewUiSwitching |
275,075 | void (@NotNull RegistryValue value) { updateColumnRenderers(); setRootColumnSize(); } | afterValueChanged |
275,076 | void () { myTableColumns.forEach((logColumn, tableColumn) -> { tableColumn.setCellRenderer(createColumnRenderer(logColumn)); }); } | updateColumnRenderers |
275,077 | TableCellRenderer (@NotNull VcsLogColumn<?> column) { TableCellRenderer renderer = column.createTableCellRenderer(this); if (ExperimentalUI.isNewUI() && column != Root.INSTANCE) { renderer = new VcsLogNewUiTableCellRenderer(column, renderer, myColorManager::hasMultiplePaths); } return renderer; } | createColumnRenderer |
275,078 | GraphCommitCellRenderer () { TableCellRenderer cellRenderer = getCommitColumn().getCellRenderer(); if (cellRenderer instanceof VcsLogNewUiTableCellRenderer) { cellRenderer = ((VcsLogNewUiTableCellRenderer)cellRenderer).getBaseRenderer(); } return (GraphCommitCellRenderer)Objects.requireNonNull(cellRenderer); } | getGraphCommitCellRenderer |
275,079 | VcsLogUiProperties () { return myProperties; } | getProperties |
275,080 | VcsLogColorManager () { return myColorManager; } | getColorManager |
275,081 | VcsLogData () { return myLogData; } | getLogData |
275,082 | void () { for (VcsLogColumn<?> logColumn : VcsLogColumnManager.getInstance().getCurrentDynamicColumns()) { TableColumn column = getTableColumn(logColumn); if (column == null) continue; int width = VcsLogColumnUtilKt.getWidth(logColumn, myProperties); if (width <= 0 || width > getWidth()) { width = getColumnWidthFromData(column); } if (width > 0 && width != column.getPreferredWidth()) { column.setPreferredWidth(width); } } int size = getWidth(); for (VcsLogColumn<?> logColumn : VcsLogColumnManager.getInstance().getCurrentColumns()) { if (logColumn == Commit.INSTANCE) continue; TableColumn column = getTableColumn(logColumn); if (column != null) size -= column.getPreferredWidth(); } getCommitColumn().setPreferredWidth(size); } | updateDynamicColumnsWidth |
275,083 | int (@NotNull TableColumn column) { int index = column.getModelIndex(); VcsLogColumn<?> logColumn = VcsLogColumnManager.getInstance().getColumn(index); VcsLogCellRenderer cellRenderer = getVcsLogCellRenderer(column); if (cellRenderer == null) { return column.getPreferredWidth(); } VcsLogCellRenderer.PreferredWidth preferredWidth = cellRenderer.getPreferredWidth(); if (preferredWidth instanceof VcsLogCellRenderer.PreferredWidth.Fixed fixedWidth) { int width = fixedWidth.getFunction().invoke(this); if (width >= 0) { return width; } else { // negative values are returned because of the migration // from com.intellij.vcs.log.ui.table.VcsLogCellRenderer.getPreferredWidth(javax.swing.JTable) return column.getPreferredWidth(); } } if (getModel().getRowCount() <= 0 || myInitializedColumns.contains(logColumn) || preferredWidth == null) { return column.getPreferredWidth(); } VcsLogCellRenderer.PreferredWidth.FromData widthFromData = (VcsLogCellRenderer.PreferredWidth.FromData)preferredWidth; int maxRowsToCheck = Math.min(MAX_ROWS_TO_CALC_WIDTH, getRowCount()); int maxValueWidth = 0; int unloaded = 0; for (int row = 0; row < maxRowsToCheck; row++) { Object value = getModel().getValueAt(row, logColumn); Integer width = widthFromData.getFunction().invoke(this, value, row, getColumnViewIndex(logColumn)); if (width == null) { unloaded++; continue; } maxValueWidth = Math.max(width, maxValueWidth); } int width = Math.min(maxValueWidth, JBUIScale.scale(MAX_DEFAULT_DYNAMIC_COLUMN_WIDTH)); if (unloaded * 2 <= maxRowsToCheck) myInitializedColumns.add(logColumn); return width; } | getColumnWidthFromData |
275,084 | int (@NotNull VcsLogColumn<?> column) { return convertColumnIndexToView(VcsLogColumnManager.getInstance().getModelIndex(column)); } | getColumnViewIndex |
275,085 | TableColumn () { return Objects.requireNonNull(getTableColumn(Root.INSTANCE)); } | getRootColumn |
275,086 | TableColumn () { return Objects.requireNonNull(getTableColumn(Commit.INSTANCE)); } | getCommitColumn |
275,087 | void () { TableColumn column = getRootColumn(); RootCellRenderer rootCellRenderer = (RootCellRenderer)column.getCellRenderer(); rootCellRenderer.updateInsets(); int rootWidth = rootCellRenderer.getColumnWidth(); // NB: all further instructions and their order are important, otherwise the minimum size which is less than 15 won't be applied column.setMinWidth(rootWidth); column.setMaxWidth(rootWidth); column.setPreferredWidth(rootWidth); } | setRootColumnSize |
275,088 | void () { setRootColumnSize(); reLayout(); repaint(); } | rootColumnUpdated |
275,089 | boolean () { return myProperties.exists(CommonUiProperties.SHOW_ROOT_NAMES) && myProperties.get(CommonUiProperties.SHOW_ROOT_NAMES); } | isShowRootNames |
275,090 | void (int rowIndex, boolean focus) { if (rowIndex >= 0 && rowIndex <= getRowCount() - 1) { scrollRectToVisible(getCellRect(rowIndex, 0, false)); setRowSelectionInterval(rowIndex, rowIndex); if (focus && !hasFocus()) { IdeFocusManager.getInstance(myLogData.getProject()).requestFocus(this, true); } } } | jumpToRow |
275,091 | void (@NotNull DataContext dataContext) { StringBuilder sb = new StringBuilder(); List<Integer> visibleColumns = getVisibleColumnIndices(); int[] selectedRows = getSelectedRows(); for (int i = 0; i < Math.min(VcsLogUtil.MAX_SELECTED_COMMITS, selectedRows.length); i++) { int row = selectedRows[i]; sb.append(StringUtil.join(visibleColumns, j -> { if (j == VcsLogColumnManager.getInstance().getModelIndex(Root.INSTANCE)) { return ""; } else { return getModel().getValueAt(row, j).toString(); } }, " ")); if (i != selectedRows.length - 1) sb.append("\n"); } CopyPasteManager.getInstance().setContents(new StringSelection(sb.toString())); } | performCopy |
275,092 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
275,093 | boolean (@NotNull DataContext dataContext) { return getSelectedRowCount() > 0; } | isCopyEnabled |
275,094 | boolean (@NotNull DataContext dataContext) { return true; } | isCopyVisible |
275,095 | void (@NotNull VcsLogHighlighter highlighter) { myHighlighters.add(highlighter); highlighter.update(getModel().getVisiblePack(), true); } | addHighlighter |
275,096 | void (@NotNull VcsLogHighlighter highlighter) { myHighlighters.remove(highlighter); } | removeHighlighter |
275,097 | void () { myHighlighters.clear(); } | removeAllHighlighters |
275,098 | SimpleTextAttributes (@NotNull Component rendererComponent, int row, int column, boolean hasFocus, final boolean selected) { VcsCommitStyle style = getStyle(row, column, hasFocus, selected, row == getHoveredRow(this)); assert style.getBackground() != null && style.getForeground() != null && style.getTextStyle() != null; rendererComponent.setBackground(style.getBackground()); rendererComponent.setForeground(style.getForeground()); return switch (style.getTextStyle()) { case BOLD -> SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES; case ITALIC -> SimpleTextAttributes.REGULAR_ITALIC_ATTRIBUTES; default -> SimpleTextAttributes.REGULAR_ATTRIBUTES; }; } | applyHighlighters |
275,099 | VcsCommitStyle (int row, int column, boolean hasFocus, boolean selected) { return myBaseStyleProvider.getBaseStyle(row, column, hasFocus, selected); } | getBaseStyle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.