| Summary: | [plan item] Provide API for refactoring | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jim des Rivieres <jeem> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P4 | CC: | burner, crivet, danrubel, duongn, m.a.r.k, n.a.edgar, richkulp, robert.simmons, taciano |
| Version: | 2.1 | Keywords: | plan |
| Target Milestone: | 3.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jim des Rivieres
I think this API can also support source generation, and not just refactoring current code. For instance, one operation I'd like to use (and code) would be "generate a constructor that initializes all final fields with parameters." This is a repetitive task if you have a lot of value objects in your project. *** Bug 13530 has been marked as a duplicate of this bug. *** For us (Visual Editor for Java) an important API that needs to be opened up is the capability of renaming an variable within a method. Currently this is done through source range and is an internal API. We thank you for already opening up the rename of an IField. We use that and it works great. But we also need to rename variables. Source ranges is sufficient, just we need it as API. Thanks. *** Bug 45493 has been marked as a duplicate of this bug. *** With 3.0 there are two new plug-ins available, ltk.refactoring.core and ltk.refactoring.ui which allows clients to implement their won refactorings using the same infrastructure. The goal of this PR wasn't to make more JDT/UI refactorings API. I opened bug 68625 for comment #3. |