Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2017-06-24 21:29:12 +0000
committerThomas Wolf2017-06-30 19:37:47 +0000
commitef0f5bc8aef098f20bb57c9c338678ede4999e79 (patch)
tree845cd1fcfe91d9c7130d0f568fe2bd9f38fe80bf /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view
parent11deed08f9721e766bf088e3a810c4896545a7c4 (diff)
downloadegit-ef0f5bc8aef098f20bb57c9c338678ede4999e79.tar.gz
egit-ef0f5bc8aef098f20bb57c9c338678ede4999e79.tar.xz
egit-ef0f5bc8aef098f20bb57c9c338678ede4999e79.zip
Use "Check Out" for the default button in checkout confirmation dialog
Change the default button text from "OK" to "Check Out". Make sure to use only interfaces that existed before Eclipse Luna. We need to check for a different ID, and we must save the toggle preference ourselves. Bug: 511691 Change-Id: I926dea7beaf8240a71886c41a2845b496e5d36fb Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTest.java
index ba3f37c005..15cfb2cacb 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTest.java
@@ -149,7 +149,9 @@ public class GitRepositoriesViewTest extends GitRepositoriesViewTestBase {
TestUtil.expandAndWait(node).getNode(branch).doubleClick();
SWTBotShell shell = bot
.shell(UIText.RepositoriesView_CheckoutConfirmationTitle);
- shell.bot().button(IDialogConstants.OK_LABEL).click();
+ shell.bot()
+ .button(UIText.RepositoriesView_CheckoutConfirmationDefaultButtonLabel)
+ .click();
TestUtil.joinJobs(JobFamilies.CHECKOUT);
refreshAndWait();
}

Back to the top