aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java
index 656f390cb..5a919c145 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/AbstractSynchronizeViewTest.java
@@ -251,7 +251,10 @@ public abstract class AbstractSynchronizeViewTest extends
SWTBotTreeItem folderNode = waitForNodeWithText(projNode, FOLDER);
waitForNodeWithText(folderNode, fileName).doubleClick();
- return bot.editorByTitle(fileName);
+ SWTBotEditor editor = bot.editorByTitle(fileName);
+ // Ensure that both StyledText widgets are enabled
+ editor.toTextEditor().setFocus();
+ return editor;
}
protected SWTBotTreeItem waitForNodeWithText(SWTBotTree tree, String name) {