summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgperron2013-10-11 13:56:05 (EDT)
committer gperron2013-10-16 16:40:46 (EDT)
commita8802a88586178539332536acdf28a52aa6845ff (patch)
tree3e084f6b4a5387b583aa8f9df8796c301ce5f6e9
parente18f987a288576807a74a2fa936468f0fe55bd3c (diff)
downloadorg.eclipse.mylyn.reviews.r4e-a8802a88586178539332536acdf28a52aa6845ff.zip
org.eclipse.mylyn.reviews.r4e-a8802a88586178539332536acdf28a52aa6845ff.tar.gz
org.eclipse.mylyn.reviews.r4e-a8802a88586178539332536acdf28a52aa6845ff.tar.bz2
When the show repository view is opened, make it appear with all fieldsrefs/changes/14/17414/2
empty. Change-Id: I7c68a7c86c4d22da6b0a637e2bd8da1feaef5bf7 Signed-off-by: gperron <guy.perron@ericsson.com>
-rw-r--r--org.eclipse.mylyn.reviews.r4e-gerrit.ui/plugin.xml22
-rw-r--r--org.eclipse.mylyn.reviews.r4e-gerrit.ui/src/org/eclipse/mylyn/reviews/r4e_gerrit/ui/internal/commands/AddGerritSiteHandler.java2
2 files changed, 22 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.reviews.r4e-gerrit.ui/plugin.xml b/org.eclipse.mylyn.reviews.r4e-gerrit.ui/plugin.xml
index f949824..832d855 100644
--- a/org.eclipse.mylyn.reviews.r4e-gerrit.ui/plugin.xml
+++ b/org.eclipse.mylyn.reviews.r4e-gerrit.ui/plugin.xml
@@ -58,7 +58,16 @@
label="Add..."
style="push">
</command>
- </menuContribution>
+ <command
+ commandId="command.showTaskRepo"
+ id="Task.Repositories"
+ label="Task Repositories..."
+ style="push">
+ <parameter
+ name="org.eclipse.ui.views.showView.viewId"
+ value="org.eclipse.mylyn.tasks.ui.views.repositories">
+ </parameter>
+ </command> </menuContribution>
<!-- Define the toolbar menu for R4E-Gerrit UI "with pulldown menu"
-->
<menuContribution
@@ -321,6 +330,17 @@
id="org.eclipse.mylyn.reviews.r4e-gerrit.addGerritSite"
name="Add ...">
</command>
+ <command
+ defaultHandler="org.eclipse.ui.handlers.ShowViewHandler"
+ id="command.showTaskRepo"
+ name="Task Repositories...">
+ <commandParameter
+ id="org.eclipse.ui.views.showView.viewId"
+ name="viewId"
+ optional="true"
+ values="org.eclipse.ui.internal.registry.ViewParameterValues">
+ </commandParameter>
+ </command>
<!-- The following are the commands under the "All" sub-menu
-->
diff --git a/org.eclipse.mylyn.reviews.r4e-gerrit.ui/src/org/eclipse/mylyn/reviews/r4e_gerrit/ui/internal/commands/AddGerritSiteHandler.java b/org.eclipse.mylyn.reviews.r4e-gerrit.ui/src/org/eclipse/mylyn/reviews/r4e_gerrit/ui/internal/commands/AddGerritSiteHandler.java
index 0034ef1..3891ca0 100644
--- a/org.eclipse.mylyn.reviews.r4e-gerrit.ui/src/org/eclipse/mylyn/reviews/r4e_gerrit/ui/internal/commands/AddGerritSiteHandler.java
+++ b/org.eclipse.mylyn.reviews.r4e-gerrit.ui/src/org/eclipse/mylyn/reviews/r4e_gerrit/ui/internal/commands/AddGerritSiteHandler.java
@@ -159,7 +159,7 @@ public class AddGerritSiteHandler extends AbstractHandler {
public IStatus run(final IProgressMonitor aMonitor) {
aMonitor.beginTask(COMMAND_MESSAGE, IProgressMonitor.UNKNOWN);
- TaskRepository taskRepository = getTaskRepository(fServerUtil.getLastSavedGerritServer());
+ TaskRepository taskRepository = getTaskRepository("");
R4EGerritPlugin.Ftracer.traceInfo("repository: " + taskRepository.getUrl()); //$NON-NLS-1$