Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-11-24 04:25:03 +0000
committermkersten2006-11-24 04:25:03 +0000
commit7189b406c5ba8216400af8cf825f62942de48b51 (patch)
tree08270d12a59edff86c2d5918f3c6dda62d1e8434 /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java
parent378d55a0d1dbbed630a9bf9d9308926ec2e6abc1 (diff)
downloadorg.eclipse.mylyn.tasks-7189b406c5ba8216400af8cf825f62942de48b51.tar.gz
org.eclipse.mylyn.tasks-7189b406c5ba8216400af8cf825f62942de48b51.tar.xz
org.eclipse.mylyn.tasks-7189b406c5ba8216400af8cf825f62942de48b51.zip
NEW - bug 165088: Add a "Open Remote Task" dialog
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165088
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java
new file mode 100644
index 000000000..0872a4006
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/TaskRepositoryParameterValues.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2004 - 2006 Mylar committers 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package org.eclipse.mylar.internal.tasks.ui.commands;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.commands.IParameterValues;
+import org.eclipse.mylar.tasks.core.AbstractRepositoryConnector;
+import org.eclipse.mylar.tasks.ui.TasksUiPlugin;
+
+/**
+ * Compute repository connectors type/label map
+ *
+ * @author Willian Mitsuda
+ */
+public class TaskRepositoryParameterValues implements IParameterValues {
+
+ public Map<String, String> getParameterValues() {
+ Collection<AbstractRepositoryConnector> connectors = TasksUiPlugin.getRepositoryManager()
+ .getRepositoryConnectors();
+ Map<String, String> values = new HashMap<String, String>();
+ for (AbstractRepositoryConnector connector : connectors) {
+ values.put(connector.getRepositoryType(), connector.getLabel());
+ }
+ return values;
+ }
+
+}

Back to the top