| Summary: | [clean up][infrastructure] Light clean up | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Benno Baumgartner <benno.baumgartner> | ||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | eclipse, Konstantin.Scheglov, markus.kell.r, martinae | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.2 M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Benno Baumgartner
Created attachment 30303 [details]
fix
Patch does that. It also moves the default dialog setting settings away from the CleanUpWizard to the MultiFixes.
BTW, "Format" works on full CU when nothing is selected and only on selected part of CU if there is selection. Will "Clean Up" support such behaviour? We are not sure if it is realy usefull to clean up only parts of a cu. Say you have the 'add this qualifier' clean up activated, applying this clean up only on some parts of a cu will IMHO end up more in a mess up then a clean up. But if you have a convincing use case then file a enhancement request against jdt/ui. patch releaseed > 20051122 1. I have several CU's on which several people are working. So, we own this CU not fully, but by method basis and format/style each method as we want. 2. This behaviour will be more consistent with Format. I think there were some reasons to support formatting only part of CU. 3. If we speak about 'add this qualifier', I have one question. Is there support for reverse operation? As I can see in 3.2 M3 there are no such operation. But what if I have CU with such code style and don't like it? (In reply to comment #5) > 1. I have several CU's on which several people are working. So, we own this CU > not fully, but by method basis and format/style each method as we want. I think this is not the right approache in the first place. If several people are working on the same CU/Project they should agree on a code styling standart and therefore have all the same clean ups enabled. Otherwise the code will be a mess and having clean ups for selected regions will make it even worse. We are thinking about making clean up settings per project and put it into the .settings folder to allow to store the settings in cvs. > > 2. This behaviour will be more consistent with Format. I think there were some > reasons to support formatting only part of CU. I think the exact same argument holds for Format. > > 3. If we speak about 'add this qualifier', I have one question. Is there > support for reverse operation? As I can see in 3.2 M3 there are no such > operation. But what if I have CU with such code style and don't like it? > There is no such clean up. It sounds reasonable but it may not be very easy to do that i.e.: private int i; void foo(int i) {this.i= i;} the this qualifier can't be removed. But I'm sure there is a way to check that. If you want such a clean up then file an enhancement request against JDT/UI. |