Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-09-12 14:13:12 -0400
committerspingel2008-09-12 14:13:12 -0400
commit38a4a14a6b7a62cba3cc21d7c92394fa687ac792 (patch)
treeb19d317a7543b17825c9695738787fcac625da01
parent6f51c0e1fadec73f985b4cfe825c3c4811f34f28 (diff)
downloadorg.eclipse.mylyn.tasks-38a4a14a6b7a62cba3cc21d7c92394fa687ac792.tar.gz
org.eclipse.mylyn.tasks-38a4a14a6b7a62cba3cc21d7c92394fa687ac792.tar.xz
org.eclipse.mylyn.tasks-38a4a14a6b7a62cba3cc21d7c92394fa687ac792.zip
NEW - bug 247077: AddTaskRepositoryHandler uses invalid parameter ID
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247077
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/AddTaskRepositoryHandler.java7
2 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index cbcacc34c..467cc6e41 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -1022,7 +1022,7 @@
id="org.eclipse.mylyn.tasks.ui.command.addTaskRepository"
name="Add Task Repository">
<commandParameter
- id="org.eclipse.mylyn.tasks.ui.command.taskRepositoryId"
+ id="connectorKind"
name="Repository Type"
optional="true"
values="org.eclipse.mylyn.internal.tasks.ui.commands.TaskRepositoryParameterValues">
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/AddTaskRepositoryHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/AddTaskRepositoryHandler.java
index 3ddf0d031..55d66273b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/AddTaskRepositoryHandler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/AddTaskRepositoryHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2004, 2008 Tasktop Technologies and others.
+ * Copyright (c) 2004, 2008 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Willian Mitsuda - initial API and implementation
* Tasktop Technologies - improvements
+ * Peter Stibrany - fix for parameter name (bug 247077)
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui.commands;
@@ -32,8 +33,8 @@ public class AddTaskRepositoryHandler extends AbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
Shell shell = HandlerUtil.getActiveShell(event);
if (shell != null && !shell.isDisposed()) {
- String param = event.getParameter("org.eclipse.mylyn.tasks.command.taskRepositoryId");
- NewRepositoryWizard repositoryWizard = new NewRepositoryWizard(param);
+ String connectorKind = event.getParameter("connectorKind");
+ NewRepositoryWizard repositoryWizard = new NewRepositoryWizard(connectorKind);
WizardDialog repositoryDialog = new WizardDialog(shell, repositoryWizard);
repositoryDialog.create();

Back to the top