Project: JDT
Bug 118871 [refactoring] Rename type with similar elements should match with plurals
Reported: 2005-12-01 12:06:13 | Status: resolved fixed

I20051130-1215 The similar elements matcher could also handle the usual english plurals "" -> "s" and "y" -> "ies". class Item { // rename to Thing Item[] items; //not found, should rename to things Item[] item; //ok } The non plus ultra would be support for conversions like this: class Handy { // rename to MobilePhone java.util.Collection<Handy> handies; //-> mobilePhones Handy[] handy; //-> mobilePhone }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RenameTests.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RenamingNameSuggestorTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamingNameSuggestor.java