Don't refresh the CommitEditor when not visible
commit50d64b5e42f79e22f9892696ec69672a575abe70
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 27 Aug 2021 19:32:23 +0000 (27 21:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 28 Aug 2021 19:47:40 +0000 (28 21:47 +0200)
treea5384e0c45e3060dfb7120a1c932098804152c23
parent795954053c25f5071070073fb9e5e85ca4aae960
Don't refresh the CommitEditor when not visible

A CommitEditor refreshes when Refs change in the repository containing
the commit shown (branches or tags might have changed). Let's do that
only when the editor and in particular its commit page is visible.

Otherwise all CommitEditors open on commits from the repository will
suddenly start refreshing and contend for reading information from the
repository and then doing UI updates, even if not visible.

Change-Id: I7052a430ac4c04c3ff54dc325e7fb62d6015f350
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditor.java