From e952a7eaa00df67f2c9fbf0a12bc90d071e1ab07 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Sun, 9 Oct 2016 23:04:21 +0300 Subject: [PATCH] [vcs-log] minor: convert field to local --- .../vcs/log/ui/frame/VcsLogGraphTable.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java index 3533019d82b6..d02cb34b88ba 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java @@ -97,12 +97,6 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider, @Nullable private Selection mySelection = null; @NotNull private final Collection myHighlighters = ContainerUtil.newArrayList(); - @NotNull private final GraphCellPainter myGraphCellPainter = new SimpleGraphCellPainter(new DefaultColorGenerator()) { - @Override - protected int getRowHeight() { - return VcsLogGraphTable.this.getRowHeight(); - } - }; public VcsLogGraphTable(@NotNull VcsLogUiImpl ui, @NotNull VcsLogData logData, @NotNull VisiblePack initialDataPack) { super(new GraphTableModel(initialDataPack, logData, ui)); @@ -110,7 +104,13 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider, myUi = ui; myLogData = logData; - myGraphCommitCellRenderer = new GraphCommitCellRenderer(logData, myGraphCellPainter, this); + GraphCellPainter graphCellPainter = new SimpleGraphCellPainter(new DefaultColorGenerator()) { + @Override + protected int getRowHeight() { + return VcsLogGraphTable.this.getRowHeight(); + } + }; + myGraphCommitCellRenderer = new GraphCommitCellRenderer(logData, graphCellPainter, this); myStringCellRenderer = new StringCellRenderer(); myLogData.getProgress().addProgressIndicatorListener(new MyProgressListener(), ui); @@ -123,7 +123,7 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider, setIntercellSpacing(JBUI.emptySize()); setTableHeader(new InvisibleResizableHeader()); - myController = new GraphTableController(this, ui, logData, myGraphCellPainter, myGraphCommitCellRenderer); + myController = new GraphTableController(this, ui, logData, graphCellPainter, myGraphCommitCellRenderer); getSelectionModel().addListSelectionListener(new MyListSelectionListener());