Community
Participate
Working Groups
Usually the tasklist fires events on container creation. It appears though there is no event when a query got changed in a way that an Unmatched container is created (and did not exist before).
Created attachment 194996 [details] patch v1 adds a ROOT delta if tasks get added to an empty orphan container (similar to the unmatched in addTask)
Created attachment 194997 [details] mylyn/context/zip
Created attachment 194998 [details] patch v2 guess the same event should get thrown once the last task is removed from the unmatched. added this to the patch
Created attachment 194999 [details] mylyn/context/zip
Shawn recently explained to me that the tasklist just hides those containers when empty...so I guess this could be treated as wontfix/invalid.
Looking at TaskList.addUnmatchedContainer() there are indeed no events generated for the Unsubmitted and Unmatched containers when new repositories are added which does not seem right (even though containers are initially empty). I believe that the suggested patch is not correct though as it fires an event when items are added and not when the containers are added. That said I'm happy to consider a fix if you want to iterate on it again and add a test case. Note that we would the contribution by tomorrow to consider it for Mylyn 3.6.
Since we need this right away, we solved it on a different level, which also solves the use case of a new repository being added. I doubt I will be able to work on a patch for this anytime soon now, sorry.
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn