Community
Participate
Working Groups
Build Identifier: 20100917-0705 I suggest refactoring the type of a property. - before: private String foo; public void setFoo(String foo){ this.foo = foo; } public String getFoo(){ return foo; } - action: select Refactor menu on the foo property definition (first line in example code) and select another desired type, eg. Long - after: private Long foo; public void setFoo(Long foo){ this.foo = foo; } public Long getFoo(){ return foo; } Reproducible: Always
This can only work as long as the property is not in use yet, since there's no way to update references to the getter and setter in a way that doesn't change behavior. This sound like a change that should better be done by hand.
Limiting all changes to same file is not an option? Or limiting the change only to property and the getter and setter?
(In reply to comment #2) > Limiting all changes to same file is not an option? > Or limiting the change only to property and the getter and setter? OK, we could offer that as a quick assist (Ctrl+1) when the caret is on the type of a property. Implementation would go into AdvancedQuickAssistProcessor (find the connected nodes and set up linked mode).