From 0cff7b2540d68ee4d1d54a423993177e5c3e27a4 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Mon, 4 Nov 2019 09:27:42 +0100 Subject: [repo view] Eliminate default handler for paste command Remove the special paste command with its default handler; create a dedicated handler and bind it to the standard paste command instead. Remove the now superfluous key binding. Bug: 495064 Change-Id: Ibcacd226b37bf05f1e46126e277a0f5ef6aab6a1 Signed-off-by: Thomas Wolf --- .../ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'org.eclipse.egit.ui.test') diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java index d424c0365f..067d85fe11 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java @@ -1,5 +1,6 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 SAP AG and others. + * Copyright (c) 2010, 2019 SAP AG and others. + * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -59,6 +60,8 @@ public class GitRepositoriesViewRepoHandlingTest extends private static final String REMOVE_REPOSITORY_CONTEXT_MENU_LABEL = "RepoViewRemove.label"; + private static final String PASTE_PATH_CONTEXT_MENU_LABEL = "RepoViewPastePath.label"; + private File repositoryFile; @Before @@ -123,7 +126,8 @@ public class GitRepositoriesViewRepoHandlingTest extends new Transfer[] { TextTransfer.getInstance() }); ContextMenuHelper.clickContextMenuSync(label, - myUtil.getPluginLocalizedValue("PastePathCommand")); + myUtil.getPluginLocalizedValue( + PASTE_PATH_CONTEXT_MENU_LABEL)); } catch (Exception e) { exceptions[0] = e; } finally { -- cgit v1.2.3