Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2017-06-24 17:29:12 -0400
committerThomas Wolf2017-06-30 15:37:47 -0400
commitef0f5bc8aef098f20bb57c9c338678ede4999e79 (patch)
tree845cd1fcfe91d9c7130d0f568fe2bd9f38fe80bf /org.eclipse.egit.ui.test/src/org/eclipse/egit
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')
-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 ba3f37c00..15cfb2cac 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