Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-03-02 18:13:16 -0500
committerspingel2011-03-02 18:13:16 -0500
commita9be4477aaef775cd3bc458d9a353e5474d9e03b (patch)
treec57cc88b4063da93430af435c628242889ec8bc2
parent6356b446d217270f0121e5c5548c08f735baaf40 (diff)
downloadorg.eclipse.mylyn.incubator-a9be4477aaef775cd3bc458d9a353e5474d9e03b.tar.gz
org.eclipse.mylyn.incubator-a9be4477aaef775cd3bc458d9a353e5474d9e03b.tar.xz
org.eclipse.mylyn.incubator-a9be4477aaef775cd3bc458d9a353e5474d9e03b.zip
NEW - bug 286963: [api] add support for ignoring incoming notification on specified fields
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286963
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
index 3bd13b13..e7f39fa9 100644
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
+++ b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
@@ -19,6 +19,7 @@ import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
import org.eclipse.mylyn.internal.tasks.core.Person;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
+import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListContentProvider;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylyn.tasks.core.ITask;
@@ -43,7 +44,7 @@ public class IncomingTaskListContentProvider extends TaskListContentProvider {
} else {
for (ITaskContainer container : applyFilter(TasksUiPlugin.getTaskList().getRootElements())) {
for (ITask task : getAllTasks(container.getChildren())) {
- if (task.getOwner() != null && task.getSynchronizationState().isIncoming()) {
+ if (task.getOwner() != null && TasksUiInternal.shouldShowIncoming(task)) {
people.add(new Person(task.getOwner(), task.getConnectorKind(), task.getRepositoryUrl()));
}
}
@@ -76,7 +77,7 @@ public class IncomingTaskListContentProvider extends TaskListContentProvider {
for (ITaskContainer container : applyFilter(TasksUiPlugin.getTaskList().getRootElements())) {
for (ITask task : getAllTasks(container.getChildren())) {
if (task.getOwner() != null && task.getOwner().equals(((Person) parent).getHandleIdentifier())
- && task.getSynchronizationState().isIncoming()) {
+ && TasksUiInternal.shouldShowIncoming(task)) {
children.add(task);
}
}

Back to the top