Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 109582 Details for
Bug 233999
incoming presentation missing subtasks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
clipboard.txt (text/plain), 2.58 KB, created by
Shawn Minto
on 2008-08-08 19:45:16 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Shawn Minto
Created:
2008-08-08 19:45:16 EDT
Size:
2.58 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.sandbox.ui >Index: src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java,v >retrieving revision 1.11 >diff -u -r1.11 IncomingTaskListContentProvider.java >--- src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java 29 May 2008 23:25:10 -0000 1.11 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java 8 Aug 2008 23:42:40 -0000 >@@ -8,9 +8,11 @@ > > package org.eclipse.mylyn.internal.sandbox.ui; > >+import java.util.Collection; > import java.util.HashSet; > import java.util.Set; > >+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; >@@ -39,7 +41,7 @@ > for (ITaskContainer container : applyFilter(TasksUiPlugin.getTaskListManager() > .getTaskList() > .getRootElements())) { >- for (ITask task : container.getChildren()) { >+ for (ITask task : getAllTasks(container.getChildren())) { > if (task.getOwner() != null && task.getSynchronizationState().isIncoming()) { > people.add(new Person(task.getOwner(), task.getConnectorKind(), task.getRepositoryUrl())); > } >@@ -49,6 +51,23 @@ > return people.toArray(); > } > >+ private Set<ITask> getAllTasks(Collection<ITask> children) { >+ if (children != null) { >+ Set<ITask> alltasks = new HashSet<ITask>(children); >+ >+ for (ITask task : children) { >+ if (task instanceof AbstractTask) { >+ Set<ITask> childTasks = getAllTasks(((AbstractTask) task).getChildren()); >+ if (childTasks != null) { >+ alltasks.addAll(childTasks); >+ } >+ } >+ } >+ return alltasks; >+ } >+ return null; >+ } >+ > @Override > public Object[] getChildren(Object parent) { > Set<ITask> children = new HashSet<ITask>(); >@@ -56,7 +75,7 @@ > for (ITaskContainer container : applyFilter(TasksUiPlugin.getTaskListManager() > .getTaskList() > .getRootElements())) { >- for (ITask task : container.getChildren()) { >+ for (ITask task : getAllTasks(container.getChildren())) { > if (task.getOwner() != null && task.getOwner().equals(((Person) parent).getHandleIdentifier()) > && task.getSynchronizationState().isIncoming()) { > children.add(task);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233999
: 109582 |
109583