Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-04-21 10:01:34 +0000
committerspingel2011-04-21 10:01:34 +0000
commit11751566bfcf21bcb6c97f7038d96d67ca1b07a4 (patch)
tree8b527e59b34d92c53dc2767ead726587e4d2d9e0
parent977b5cdf8aacc8fc1506257fbef7649466433342 (diff)
downloadorg.eclipse.mylyn.tasks-11751566bfcf21bcb6c97f7038d96d67ca1b07a4.tar.gz
org.eclipse.mylyn.tasks-11751566bfcf21bcb6c97f7038d96d67ca1b07a4.tar.xz
org.eclipse.mylyn.tasks-11751566bfcf21bcb6c97f7038d96d67ca1b07a4.zip
RESOLVED - bug 342065: Should not run properties command on non-user-managed repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=342065
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java
index 9cef1b0d8..dccf8eb0a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java
@@ -11,6 +11,7 @@
package org.eclipse.mylyn.internal.tasks.ui.views;
+import org.eclipse.core.commands.NotEnabledException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.action.Action;
@@ -186,6 +187,8 @@ public class TaskRepositoriesView extends ViewPart {
if (service != null) {
try {
service.executeCommand(IWorkbenchActionDefinitionIds.PROPERTIES, null);
+ } catch (NotEnabledException e) {
+ // ignore
} catch (Exception e) {
StatusHandler.log(new Status(IStatus.ERROR, TasksUiPlugin.ID_PLUGIN,
"Opening repository properties failed", e)); //$NON-NLS-1$

Back to the top