| Summary: | Pasting Java code changes indent incorrectly | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Martijn van Steenbergen <mvsteenbergen> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | All | ||
| Whiteboard: | |||
Move to JDT/Text |
Eclipse SDK Version: 3.1.0 Build id: I20050627-1435 public class Test { { String test = toString().toString().toString().toString().toString() .toString(); } } 1) Select the two lines comprising the assignment. 2) Cut. 3) Paste. The second line of the assignment will incorrectly be aligned with the first line of the assignment, like so: public class Test { { String test = toString().toString().toString().toString().toString() .toString(); } } Invoking the formatter restores the correct indentation.