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

Bug 283497

Summary: Include complete multiline comment when creating task through "New Task from marker"
Product: z_Archived Reporter: Hans Harz <hansharz_bugzilla>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 Keywords: helpwanted
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Hans Harz CLA 2009-07-15 04:08:58 EDT
+++ This bug was initially created as a clone of Bug #283405 +++

Build ID: Build id: 20090621-0832

Steps To Reproduce:
1. Select a Marker in the Tasks-View with a comment longer than one line. E.g.:   
    /** FIXME: This method doesn't really belong here anymore.
     * These exceptions started out as foo exceptions, but now are
     * generic honk exceptions. So they should be read by the
     * honk, and this method should become a honk method. 
     */

2. Select "New Task from marker"

Now I got a task with the title: 
Java Task: FIXME : This method doesn't really belong here anymore.

And the Comment:
-----
Resource: /src/java/com/foo/nlp/bar/bar.java
Location: line 19
-----


*Expected behavior*:
A new task with the same title:
Java Task: FIXME : This method doesn't really belong here anymore.

But with the Comment:
------
This method doesn't really belong here anymore.
These exceptions started out as foo exceptions, but now are
generic honk exceptions. So they should be read by the
honk, and this method should become a honk method. 

Resource: /src/java/com/foo/nlp/bar/bar.java
Location: line 19
---------
Comment 1 Steffen Pingel CLA 2009-07-19 18:44:56 EDT
The task that is generated is based on the information that is available in the marker in the JDT marker view. I am not sure that it is easily possible to include additional information from the source file such as the surrounding comment but it does sound like a useful enhancement. 

Marking helpwanted. We are currently not able to address this request within the Mylyn project but we would be happy to resolve it through a contribution.
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
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