Community
Participate
Working Groups
This is a new refactoring operation. Notes - SDI = Setter Depenency Injection CDI = Constructor Depenency Injection Both as defined in http://www.martinfowler.com/articles/injection.html A member variable/field can have a Constructor Dependency Injection parameter added for it. The Constructors can be changed en masse, or duplicated. Field can optionally go final. Consider: class Apple { final Orange orange; Banana banana; public Apple(Orange o) { orange = o; } public Apple() { orange = new DefaultOrange(); } } if banana were selected, and the 'add CDI parameter to ctor' were actioned, the result would be: class Apple { final Orange orange; final Banana banana; public Apple(Orange o, Banana banana) { orange = o; this.banana = banana; } public Apple(Banana banana) { orange = new DefaultOrange(); this.banana = banana; } }
Moving to JDT UI for comments.
Parts of this can currently be done using change method signature. Time permitted.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.