Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 187725 - [api] retrieving parent container for tasks
Summary: [api] retrieving parent container for tasks
Status: RESOLVED DUPLICATE of bug 210801
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P4 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 21:31 EDT by Eugene Kuleshov CLA
Modified: 2008-04-12 21:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2007-05-17 21:31:52 EDT
From bug 187433

For some reason there is no way to get actual container for an arbitrary task. So, I used a hack to get query that produced given task (see TaskWorkingSetFilter.select() method).

taskList.getQueryForHandle(((ITask) element).getHandleIdentifier());

That obviously don't cover case when task came from the local category container. So, we need an API to efficiently address that.
Comment 1 Mik Kersten CLA 2007-06-25 10:33:21 EDT
We have added API for getParentContainer() that returns a list.  Currently that list only contains the parent category, but should be extended to return parent queries as well.
Comment 2 Eugene Kuleshov CLA 2007-06-25 10:45:22 EDT
How about retaining parent if task moved into archive?
Comment 3 Robert Elves CLA 2008-01-10 14:17:22 EST

*** This bug has been marked as a duplicate of bug 210801 ***
Comment 4 Steffen Pingel CLA 2008-04-12 21:57:06 EDT
Reopening for reassignment.
Comment 5 Steffen Pingel CLA 2008-04-12 21:57:45 EDT

*** This bug has been marked as a duplicate of bug 210801 ***