Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/CommandEnablementTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/CommandEnablementTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/CommandEnablementTest.java
index 69cbceab72..fc8a55ba0a 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/CommandEnablementTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/CommandEnablementTest.java
@@ -62,12 +62,14 @@ public class CommandEnablementTest extends AbstractGitflowHandlerTest {
private void selectPackageExplorerItem(int index) {
SWTBotTree explorerTree = TestUtil.getExplorerTree();
- explorerTree.select(index);
+ PlatformUI.getWorkbench().getDisplay()
+ .syncExec(() -> explorerTree.select(index));
}
private void selectRepositoryInView(int index) {
- SWTBotTree explorerTree = getRepositoryTree();
- explorerTree.select(index);
+ SWTBotTree repoTree = getRepositoryTree();
+ PlatformUI.getWorkbench().getDisplay()
+ .syncExec(() -> repoTree.select(index));
}
private void assertAllCommandsEnabledAndExecutable() throws Exception {

Back to the top