Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java8
-rw-r--r--org.eclipse.egit.ui/plugin.properties1
-rw-r--r--org.eclipse.egit.ui/plugin.xml25
3 files changed, 18 insertions, 16 deletions
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 d424c0365..067d85fe1 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 {
diff --git a/org.eclipse.egit.ui/plugin.properties b/org.eclipse.egit.ui/plugin.properties
index a341477a9..52d3b1ffa 100644
--- a/org.eclipse.egit.ui/plugin.properties
+++ b/org.eclipse.egit.ui/plugin.properties
@@ -166,7 +166,6 @@ DeleteBranchCommand = Delete Branch...
RenameBranchCommand = Rename Branch...
FetchCommand = Fetch...
CommitCommand = Commit
-PastePathCommand = Paste Repository Path or URI
PushCommand = Push...
RemoveRepositoryCommand = Remove Repository
ImportProjectsCommand = Import Projects...
diff --git a/org.eclipse.egit.ui/plugin.xml b/org.eclipse.egit.ui/plugin.xml
index 4de267686..c20f7c733 100644
--- a/org.eclipse.egit.ui/plugin.xml
+++ b/org.eclipse.egit.ui/plugin.xml
@@ -1947,6 +1947,17 @@
</activeWhen>
</handler>
<handler
+ commandId="org.eclipse.ui.edit.paste">
+ <class
+ class="org.eclipse.egit.ui.internal.repository.tree.command.PasteCommand">
+ </class>
+ <activeWhen>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.egit.ui.internal.repository.RepositoriesView" />
+ </with>
+ </activeWhen>
+ </handler>
+ <handler
commandId="org.eclipse.ui.edit.rename">
<class
class="org.eclipse.egit.ui.internal.repository.tree.command.RenameBranchCommand">
@@ -4942,7 +4953,7 @@
</visibleWhen>
</command>
<command
- commandId="org.eclipse.egit.ui.RepositoriesViewPaste"
+ commandId="org.eclipse.ui.edit.paste"
label="%RepoViewPastePath.label"
style="push">
</command>
@@ -5933,12 +5944,6 @@
</command>
<command
categoryId="org.eclipse.egit.ui.commandCategory"
- defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.PasteCommand"
- id="org.eclipse.egit.ui.RepositoriesViewPaste"
- name="%PastePathCommand">
- </command>
- <command
- categoryId="org.eclipse.egit.ui.commandCategory"
id="org.eclipse.egit.ui.RepositoriesViewRemove"
name="%RemoveRepositoryCommand">
</command>
@@ -6773,12 +6778,6 @@
sequence="COMMAND+ALT+3">
</key>
<key
- commandId="org.eclipse.egit.ui.RepositoriesViewPaste"
- contextId="org.eclipse.egit.ui.RepositoriesView"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M1+V">
- </key>
- <key
commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath"
contextId="org.eclipse.egit.ui.RepositoriesView"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"

Back to the top