| Summary: | [context] newly activated task gets polluted with last selected element in previous task | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Sam Davis <sam.davis> |
| Component: | Mylyn | Assignee: | Mylyn Inbox <mylyn-inbox> |
| Status: | CLOSED MOVED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | angvoz.dev, shawn.minto, steffen.pingel |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Sam Davis
The context stores the last selection that was active when a task is deactivated. The reason is to provide a minimal editor restore even if a workbench memento is not available. Shawn, does this still make sense? Shouldn't we check if the active selection is also part of the context? This sounds like a different problem actually since it has to do with the previously selected element and not the active selection. Sam, have you been able to track down how this could be reproduced so that I can investigate what the problem could be? Sam, are you still seeing this consistently? I think I still see this. I definitely am sometimes surprised by what's in my context. I just created a new task, activated it, selected a couple of things, submitted the task, and then noticed that my context included a method I looked at several hours ago. The method is not in the context of the task I was working on most recently. This is really interesting. I dont know how this can actually happen. We should look at adding some logging in your workspace to figure out how these events are getting into your new context. It's rather strange that I didn't see the previous comment until I opened this task just now, was told it had incoming changes, and clicked refresh. Anyway, I will consider adding logging when I have time. Looking at the Java monitor implementation, there is some funky code that retains the previous selection to determine if an interaction is an edit or selection. Is it possible that that is causing the described bug? 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 |