| Summary: | [create on paste] Heuristic for pasting text into package explorer needs to better handle comments | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r |
| Version: | 3.4 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Philipe Mulet
Hard to do right. What if text looks like this?
//---------- com.b.p1.A.java -------------------------
package com.b.p1;
public class A<K> {
protected final class Inner {}
}
//---------- END com.b.p1.A.java -------------------------
//---------- com.b.p1.ADerivedSamePkg.java ------------
package com.b.p1;
import java.util.Map;
public class ADerivedSamePkg extends A<Object> {
}
//---------- END com.b.p1.ADerivedSamePkg.java ------------
But I guess adding comments to the following CU would indeed be better in more cases.
Yes, indeed. I think aligning on the Java model strategy would be the best.
//---------- com.b.p1.A.java -------------------------
package com.b.p1;
public class A<K> {
protected final class Inner {}
}//---------- END com.b.p1.A.java -------------------------
//---------- com.b.p1.ADerivedSamePkg.java ------------
package com.b.p1;
import java.util.Map;
public class ADerivedSamePkg extends A<Object> {
}//---------- END com.b.p1.ADerivedSamePkg.java ------------
I would expect this one to work.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |