Community
Participate
Working Groups
20031119 In the 'Refactoring > Change Method Signature' dialog, for existing parameters it's not possible to enter a default value. This should be made more clear by dispabling the corresponding cell or to add some non editable text like '(existing)' As an extra it would be nice if the default value could refer to an exising argument e.g. ${v}.toString(); example: public void foo(Value value) { } changed to public void foo(Value value, String description) { } I set the default value of description to '${value}.getDescription()' An caller of foo: 'foo(colorValue)' is then changed to 'foo(colorValue, colorValue.getDescription())'
Non-editable default cells have a '-' now. Adapting summary from "Change method signature: Issues with default value". We need an affordance if we support templates for existing parameters. Could use content assist: ${value} - copy actual argument of parameter 'value' The "perfect" solution could even support content assist after the ${value} expression.