| Summary: | [create on paste] Smart paste should better handle imports | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | markus.kell.r |
| Version: | 3.5 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
It works if there's a package declaration before the imports. No plans to invest more into this. Fair enough, though snippets attached to bugs are often as simple as possible. |
I2009020203-1200. If I paste the following source. import java.util.List; public class A { List l; } import java.util.List; public class B { List l; } I get: A.java with: import java.util.List; public class A { List l; } import java.util.List; and B.java with: public class B { List l; } We should be smarter and add imports above a public class to that CU.