mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[charts] rename ColumnDescriptor.Attribute.HIGHLIGHTED to INDEX
GitOrigin-RevId: 7b2ba508c78749c95653656e1bf02bc2907c117c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
32ae5a5cb7
commit
cc9bd1696e
@@ -24,7 +24,7 @@ public interface ColumnDescriptor {
|
||||
ZERO_PADDING,
|
||||
ROW_ID,
|
||||
HIDDEN,
|
||||
HIGHLIGHTED,
|
||||
INDEX,
|
||||
VIRTUAL
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,9 +102,8 @@ class TableHeatmapColorLayer private constructor(private val dataGrid: DataGrid,
|
||||
val column = dataModel.getColumn(columnIndex)
|
||||
val firstRow = dataModel.rowIndices.first()
|
||||
|
||||
// ColumnDescriptor.Attribute.HIGHLIGHTED currently is the only normal way do extract index column from coloring.
|
||||
if (column == null ||
|
||||
column.attributes.contains(ColumnDescriptor.Attribute.HIGHLIGHTED) ||
|
||||
column.attributes.contains(ColumnDescriptor.Attribute.INDEX) ||
|
||||
!ObjectFormatterUtil.isNumericCell(dataGrid, firstRow, columnIndex)) {
|
||||
return@forEach
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.intellij.database.datagrid.GridUtil.createFormatterConfig;
|
||||
import static com.intellij.database.datagrid.mutating.ColumnDescriptor.Attribute.HIGHLIGHTED;
|
||||
import static com.intellij.database.datagrid.mutating.ColumnDescriptor.Attribute.INDEX;
|
||||
import static com.intellij.database.run.ui.DataAccessType.DATA_WITH_MUTATIONS;
|
||||
import static com.intellij.database.run.ui.grid.renderers.DefaultTextRendererFactory.TextRenderer.hasInlay;
|
||||
|
||||
@@ -199,7 +199,7 @@ public final class DefaultTextRendererFactory implements GridCellRendererFactory
|
||||
boolean selected = myGrid.getSelectionModel().isSelected(rowIdx, columnIdx);
|
||||
GridColumn column = getColumn(modelColumn, myGrid);
|
||||
TextAttributes attributes = getAttributes(value, editor.getColorsScheme(), selected,
|
||||
column != null && column.getAttributes().contains(HIGHLIGHTED));
|
||||
column != null && column.getAttributes().contains(INDEX));
|
||||
|
||||
ModelIndex<GridRow> modelRow = rowIdx.toModel(myGrid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user