Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-10-13 21:14:35 +0000
committerThomas Wolf2019-11-12 07:34:49 +0000
commit0a2a6a4a54d0a7b3507641a261499566d80e1ae9 (patch)
treead48ad8473535b30833efcda8f8b23f2f3cacda0 /org.eclipse.egit.ui.test
parent528a53b2793a5f86c3f372e4b36e0933a0c481d6 (diff)
downloadegit-0a2a6a4a54d0a7b3507641a261499566d80e1ae9.tar.gz
egit-0a2a6a4a54d0a7b3507641a261499566d80e1ae9.tar.xz
egit-0a2a6a4a54d0a7b3507641a261499566d80e1ae9.zip
Decorators: cache more repository state
Generalize the mechanism previously only used for the branch state in the DecoratableResourceHelper. This cached the branch state per repository and relied on the label providers clearing that cache when needed. Use the same mechanism for more repository state, similar to what had been done in commit 8bf986c3 for handler enabling. Make RepositoryStateCache abstract; move the clearing on selection changes into a separate subclass and use that instead. Give decorators their own cache instance, and make sure they use it instead of computing things themselves over and over again. Bug: 550878 Change-Id: I988905103ad86e18c696269dd54d525fcdbc5cbc Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/GitLightweightDecoratorTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/GitLightweightDecoratorTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/GitLightweightDecoratorTest.java
index 2f41bf2561..527f57b5d0 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/GitLightweightDecoratorTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/GitLightweightDecoratorTest.java
@@ -260,8 +260,7 @@ public abstract class GitLightweightDecoratorTest
}
protected static DecoratableResource newDecoratableResource(
- IndexDiffData indexDiffData, IResource resource)
- throws IOException {
+ IndexDiffData indexDiffData, IResource resource) {
return new DecoratableResourceAdapter(indexDiffData, resource);
}

Back to the top