From 8bce6cb5fe7cc3183bbab0f8fecc51b8920ca914 Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Fri, 14 Jun 2019 14:56:53 +0300 Subject: [PATCH] vcs: Refactor "MultipleLocalChangeListsBrowser" - remove deprecated "TreeUtil.invalidateCacheAndRepaint()" usage Currently trees correctly handle nodes with changing sizes - see "LafManagerImpl.patchTreeUI()" GitOrigin-RevId: e090a3542a7a4123f1aca3e39d969d56edb5af4e --- .../vcs/changes/ui/MultipleLocalChangeListsBrowser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleLocalChangeListsBrowser.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleLocalChangeListsBrowser.java index e010985ff0cf..b7fac66f8a73 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleLocalChangeListsBrowser.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleLocalChangeListsBrowser.java @@ -35,7 +35,6 @@ import com.intellij.ui.SimpleTextAttributes; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.ui.JBUI; import com.intellij.util.ui.ThreeStateCheckBox.State; -import com.intellij.util.ui.tree.TreeUtil; import com.intellij.util.ui.update.MergingUpdateQueue; import com.intellij.util.ui.update.Update; import com.intellij.vcs.commit.PartialCommitChangeNodeDecorator; @@ -597,7 +596,7 @@ class MultipleLocalChangeListsBrowser extends CommitDialogChangesBrowser impleme super.updateExclusionStates(); MyChangesBrowserTreeList.this.notifyInclusionListener(); - TreeUtil.invalidateCacheAndRepaint(MyChangesBrowserTreeList.this.getUI()); + MyChangesBrowserTreeList.this.repaint(); } } }