Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2010-08-25 13:27:18 -0400
committersminto2010-08-25 13:27:18 -0400
commit3785bc66fa82be39dc203d5a2641dfecc3efd3a2 (patch)
tree65bc734071f6d9e4b4da78148f577e6dfb5e237c
parent22cdcb81af5264136b5e5c6df0d47f2aa44a849a (diff)
downloadorg.eclipse.mylyn.tasks-3785bc66fa82be39dc203d5a2641dfecc3efd3a2.tar.gz
org.eclipse.mylyn.tasks-3785bc66fa82be39dc203d5a2641dfecc3efd3a2.tar.xz
org.eclipse.mylyn.tasks-3785bc66fa82be39dc203d5a2641dfecc3efd3a2.zip
NEW - bug 303570: remove from category action missing on repository tasks in the Uncategorized category
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303570
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
index 48033bfac..6c9dd2975 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
@@ -34,7 +34,9 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
+import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
+import org.eclipse.mylyn.internal.tasks.core.UncategorizedTaskContainer;
import org.eclipse.mylyn.internal.tasks.ui.IDynamicSubMenuContributor;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.actions.CopyTaskDetailsAction.Mode;
@@ -301,6 +303,10 @@ public class RepositoryElementActionGroup {
if (container instanceof TaskCategory) {
hasCategory = true;
}
+ if (container instanceof UncategorizedTaskContainer
+ && !LocalRepositoryConnector.CONNECTOR_KIND.equals(((AbstractTask) element).getConnectorKind())) {
+ hasCategory = true;
+ }
}
if (!hasCategory) {
return false;

Back to the top