Community
Participate
Working Groups
R3.5 and I20090803-1800. When extracting code which only appears once the checkbox says: [ ] Replace all occurrences of statements with method ==> it should say: "Replace single occurrence..." ==> the checkbox should be checked When extracting code which appears n times the checkbox says: [x] Replace (n-1) occurrences... ==> it should say: "Replace (n-1) ADDITIONAL occurrences..."
The checkbox always needs to have the same meaning w.r.t "additional" / "just the selection". If we change the disabled state to be checked, then the checkbox text should always include the selected occurrence, i.e. plural text should become: "Replace n occurrences of statements with method". The single occurrence text should then be simplified to: "Replace selection with method". IMO, the better solution is: - "Replace additional occurrences of statements with method" (disabled/unchecked) - "Replace 1 additional occurrence of statements with method" - "Replace (n-1) additional occurrences of statements with method"
Agree.
Fixed.
Verified in I20090805-1800.