Project: JDT
Bug 204642 [change method signature] Logical error in restoreSelection of ChangeParametersControl
Reported: 2007-09-26 00:48:00 | Status: verified fixed

Build ID: I20070625-1500 Steps To Reproduce: 1. Open source org.eclipse.jdt.internal.ui.refactoring.ChangeParametersControl 2. Find method createRemoveButton(Composite buttonComposite) 3. In line 534, This line should not be there, or will not restore selection More information: Fixing method: From: if (itemCount != 0 && index >= itemCount) { index= itemCount - 1; getTable().setSelection(index); } To: if (itemCount != 0) { if (index >= itemCount) index = itemCount - 1; getTable().setSelection(index); }

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeParametersControl.java