diff options
author | Thomas Wolf | 2017-06-24 21:29:12 +0000 |
---|---|---|
committer | Thomas Wolf | 2017-06-30 19:37:47 +0000 |
commit | ef0f5bc8aef098f20bb57c9c338678ede4999e79 (patch) | |
tree | 845cd1fcfe91d9c7130d0f568fe2bd9f38fe80bf /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view | |
parent | 11deed08f9721e766bf088e3a810c4896545a7c4 (diff) | |
download | egit-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.java | 4 |
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(); } |