Community
Participate
Working Groups
1. Open a perspective other then the Java perspective. 2. Show the Task List view and activate or deactivate a task. 3. Observe an automatic switch of the perspective to the default java perspective. I don't think that I have been asked whether I always want to switch to the java perspective when clicking. This is especially annoying when using a "java" perspective but saved as a custom perspective. Expected outcome would be that mylyn doesn't change the perspective of the user.
Raphael, please check if you have enabled Tasks > Context > Open last used perspective on task activation in the Eclipse Preferences.
(In reply to comment #1) > Raphael, please check if you have enabled Tasks > Context > Open last used > perspective on task activation in the Eclipse Preferences. > That's it. Had it checked. That also explains why it didn't happen with all the tasks that I activated. Thanks for the quick response.
There is still a bug. If I create a task in my custom perspective and activate it, the perspective is switched to the Java perspective. This might make sense if the perspective is e.g. the synchronize cvs perspective, but not if I use a java custom perspective. (e.g I have two java perspectives, the default one and my custom one) and activating the task should not switch away from the custom java perspective).
Mylyn should switch to the perspective active when the task was last deactivated. If that does not work, please provide further information how to reproduce the problem.
As I tried but failed to explain. When you create a task from scratch (I am talking about local tasks here) in Perspective A and then activate the task for the first time. The Perspective will be changed to the Java Perspective with A != Java.
Thanks for clarifying. I'll take a look. I don't think that is the intended behavior.
Mik, this is related to bug 226618, I have added a test case that triggers the bug. The information about the last used perspectives is not cleared properly when tasks are deleted. I suspect that a perspective from a previously deleted task is restored when a new task is activated.
Steffen: Consider for 3.1 along with your other fix.
It looks like this should be using context activation not task activation which is why it isn't/can't be cleared.
Moving to next milestone. Due to time constraints we'll need to postpone bug 226618 which this bug depends on.
This has been fixed as part of bug 226618. The context state is now properly managed when submitting tasks or deleting (local) tasks.