Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-12 11:27:48 -0400
committermkersten2007-06-12 11:27:48 -0400
commitc7c54bb9a4d7378ff48948b041275f3f79d9f696 (patch)
treef5b89fb3ad863778ea8df6a2ccd03295cf3c4d29
parent31d7aecd27c530d799e8fd7738af1271437640f5 (diff)
downloadorg.eclipse.mylyn.tasks-c7c54bb9a4d7378ff48948b041275f3f79d9f696.tar.gz
org.eclipse.mylyn.tasks-c7c54bb9a4d7378ff48948b041275f3f79d9f696.tar.xz
org.eclipse.mylyn.tasks-c7c54bb9a4d7378ff48948b041275f3f79d9f696.zip
RESOLVED - bug 192210: Can not add task repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=192210
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AddRepositoryAction.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/RemoteTaskSelectionDialog.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/ITaskCommandIds.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskCommandIds.java)13
3 files changed, 11 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AddRepositoryAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AddRepositoryAction.java
index aaf95ffce..c015168a3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AddRepositoryAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AddRepositoryAction.java
@@ -14,7 +14,7 @@ package org.eclipse.mylyn.internal.tasks.ui.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.mylyn.core.MylarStatusHandler;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages;
-import org.eclipse.mylyn.tasks.ui.TaskCommandIds;
+import org.eclipse.mylyn.tasks.ui.ITaskCommandIds;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.handlers.IHandlerService;
@@ -39,7 +39,7 @@ public class AddRepositoryAction extends Action {
public void run() {
IHandlerService handlerSvc = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
- handlerSvc.executeCommand(TaskCommandIds.ADD_TASK_REPOSITORY, null);
+ handlerSvc.executeCommand(ITaskCommandIds.ADD_TASK_REPOSITORY, null);
} catch (Exception e) {
MylarStatusHandler.fail(e, e.getMessage(), true);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/RemoteTaskSelectionDialog.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/RemoteTaskSelectionDialog.java
index 00a6eae4c..d7a42d55e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/RemoteTaskSelectionDialog.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/commands/RemoteTaskSelectionDialog.java
@@ -46,7 +46,7 @@ import org.eclipse.mylyn.tasks.core.TaskList;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.TaskRepositoryFilter;
import org.eclipse.mylyn.tasks.core.TaskRepositoryManager;
-import org.eclipse.mylyn.tasks.ui.TaskCommandIds;
+import org.eclipse.mylyn.tasks.ui.ITaskCommandIds;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
@@ -206,7 +206,7 @@ public class RemoteTaskSelectionDialog extends SelectionStatusDialog {
public void widgetSelected(SelectionEvent e) {
IHandlerService hndSvc = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
- hndSvc.executeCommand(TaskCommandIds.ADD_TASK_REPOSITORY, null);
+ hndSvc.executeCommand(ITaskCommandIds.ADD_TASK_REPOSITORY, null);
repositoriesViewer.setInput(getTaskRepositories());
} catch (CommandException ex) {
MylarStatusHandler.fail(ex, ex.getMessage(), true);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskCommandIds.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/ITaskCommandIds.java
index 35f86a9fd..e3eff50f0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskCommandIds.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/ITaskCommandIds.java
@@ -10,17 +10,18 @@ package org.eclipse.mylyn.tasks.ui;
/**
* @author Willian Mitsuda
+ * @author Mik Kersten
*/
-public interface TaskCommandIds {
+public interface ITaskCommandIds {
- public static final String OPEN_TASK = "org.eclipse.mylyn.tasks.command.openTask";
+ public static final String OPEN_TASK = "org.eclipse.mylyn.tasks.ui.command.openTask";
- public static final String OPEN_REMOTE_TASK = "org.eclipse.mylyn.tasks.command.openRemoteTask";
+ public static final String OPEN_TASK_REMOTE = "org.eclipse.mylyn.tasks.ui.command.openRemoteTask";
- public static final String ACTIVATE_TASK = "org.eclipse.mylyn.tasks.command.activateTask";
+ public static final String ACTIVATE_TASK = "org.eclipse.mylyn.tasks.ui.command.activateTask";
- public static final String DEACTIVATE_TASK = "org.eclipse.mylyn.tasks.command.deactivateAllTasks";
+ public static final String DEACTIVATE_TASK = "org.eclipse.mylyn.tasks.ui.command.deactivateAllTasks";
- public static final String ADD_TASK_REPOSITORY = "org.eclipse.mylyn.tasks.command.addTaskRepository";
+ public static final String ADD_TASK_REPOSITORY = "org.eclipse.mylyn.tasks.ui.command.addTaskRepository";
}

Back to the top