Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363496

Summary: Command org.eclipse.mylyn.task.ui.editor.QuickOutline visible on any editor
Product: z_Archived Reporter: Eckart Liemke <eckart.liemke>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 3.6.4   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Ctrl-3 Available views
none
proposed fix
none
mylyn/context/zip
none
mylyn/context/zip none

Description Eckart Liemke CLA 2011-11-10 11:24:56 EST
This bug is related to bug 337841.
We have encountered a related problem. If you enter Ctrl-3 on any editor other than a mylyn task editor, the command org.eclipse.mylyn.task.ui.editor.QuickOutline (its label) gets visible. When triggering it, it shows an empty quick outline, of course.
Comment 1 Steffen Pingel CLA 2011-11-10 11:57:59 EST
I can not reproduce this. Please provide steps and a screenshot and some details about the version of Eclipse and Mylyn that you are using.
Comment 2 Eckart Liemke CLA 2011-11-10 12:46:57 EST
Created attachment 206799 [details]
Ctrl-3 Available views
Comment 3 Eckart Liemke CLA 2011-11-10 12:53:42 EST
Sorry, I forgot one detail. You have to hit Ctrl-3 and the type "outline". Among others, the outline for the task editor is offered (on any editor). I have attached a screenshot which shows the outline option two times, the second one works for the task editor only but appears also on other editors, which can be confusing.
I just updated to the latest version of mylyn.
The command and handler definition can be found in plugin org.eclipse.mylyn.tasks.ui . It has no restriction regarding its enablement/visibility.
Comment 4 Steffen Pingel CLA 2011-11-10 15:11:05 EST
Thanks for the details. I was able to reproduce the problem. I am not yet sure what the best expression is to control command handler enablement but it should only be active when the Task Editor is the active part.
Comment 5 Steffen Pingel CLA 2011-11-10 15:15:58 EST
Created attachment 206815 [details]
proposed fix
Comment 6 Steffen Pingel CLA 2011-11-10 15:16:08 EST
Created attachment 206816 [details]
mylyn/context/zip
Comment 7 Steffen Pingel CLA 2011-11-17 16:38:34 EST
I have pushed the fix to the master and e_3_7_m_3_6_x branch.
Comment 8 Steffen Pingel CLA 2011-11-17 16:38:35 EST
Created attachment 207185 [details]
mylyn/context/zip