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

Bug 325673

Summary: New Task -> New task should be message
Product: z_Archived Reporter: Lars Vogel <Lars.Vogel>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P2 CC: Lars.Vogel, lily2guo, shawn.minto, steffen.pingel
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 326005    
Bug Blocks:    
Attachments:
Description Flags
New Task on Ubuntu 10.04/Gtk
none
mylyn/context/zip none

Description Lars Vogel CLA 2010-09-18 05:59:14 EDT
If I create a new (local) task, the task is pre-defined with new task. I think it would be better if you could use

text.setMessage("New Task");

This way I wouldn't have to delete New Task before putting in my text.
Comment 1 Steffen Pingel CLA 2010-09-22 17:40:50 EDT
The summary should be selected when the editor is opened. You can simply start typing to overwrite the pre-defined text, no need to delete anything. Does that help?
Comment 2 Lars Vogel CLA 2010-09-24 02:20:45 EDT
Hi Steffen, 

this works. But wouldn't like be nicer if the text would be just a message? Also the fix seems (without looking in your code) straight-forward.

Bestr regards, Lars
Comment 3 Steffen Pingel CLA 2010-09-24 02:22:46 EDT
Maybe I misunderstood the request. Are you asking for an API change or UI change?
Comment 4 Lars Vogel CLA 2010-09-24 02:23:47 EDT
A UI change. Sorry if that was not clear.
Comment 5 Lars Vogel CLA 2010-09-30 16:26:28 EDT
Update: On Linux the "New Task" is not pre-selected therefore the bug is a little bit more severe then just cosmetic.
Comment 6 Steffen Pingel CLA 2010-10-26 15:28:04 EDT
Created attachment 181769 [details]
New Task on Ubuntu 10.04/Gtk
Comment 7 Steffen Pingel CLA 2010-10-26 15:43:01 EDT
Now I finally understand the request :). I agree that we should consider displaying a grayed out message in the summary field instead of pre-setting the summary to "New Task". 

There is a related discussion on bug 326005. I'll comment there with more detail.

(In reply to comment #5)
> Update: On Linux the "New Task" is not pre-selected therefore the bug is a
> little bit more severe then just cosmetic.

I can't reproduce that at the moment. Which version of Eclipse and Gtk are you using?
Comment 8 Lars Vogel CLA 2010-10-26 15:46:12 EDT
Cool! 
-----------
Now I finally understand the request :). I agree that we should consider
displaying a grayed out message in the summary field instead of pre-setting the
summary to "New Task". 
------------

I'm using Ubuntu 10.04 as you. Strange that your behavior is different.
Comment 9 Lars Vogel CLA 2012-05-10 14:05:43 EDT
Still not implemented? :-)
Comment 10 Steffen Pingel CLA 2012-05-10 16:58:00 EDT
We are not able to prioritize this at the moment due to time constraints. That said, we would be happy resolve this through a community contribution. Any takers :)?
Comment 11 Lars Vogel CLA 2012-05-10 18:19:06 EDT
No time for a one liner? ;-)

setText() -> setMessage()
Comment 12 Steffen Pingel CLA 2012-05-10 19:45:10 EDT
The "New Task" summary is a magic string that affect visibility of tasks in the task list and possibly has other non-obvious side effects. We would need to write a number of unit tests to cover that and would also need to test a UI change of this sort manually on at least 3 platforms which is unfortunately a non trivial effort even if the change seems straight forward.
Comment 13 Lars Vogel CLA 2012-05-10 19:46:46 EDT
The good old design pattern of magic strings... ;-)

Thanks for the explanation, makes more sense now.
Comment 14 Steffen Pingel CLA 2012-06-21 18:07:42 EDT
Created attachment 217724 [details]
mylyn/context/zip
Comment 15 Lars Vogel CLA 2014-03-31 15:02:48 EDT
Been a while, I mark my bug report as WONTFIX, please reopen if you plan to work in it