View | Details | Raw Unified | Return to bug 325234 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ui/texteditor/FindReplaceDialog.java (-3 / +10 lines)
Lines 1616-1623 Link Here
1616
	 * @param content to be put into the combo
1616
	 * @param content to be put into the combo
1617
	 */
1617
	 */
1618
	private void updateCombo(Combo combo, List content) {
1618
	private void updateCombo(Combo combo, List content) {
1619
		combo.removeAll();
1619
		int startIndex= 0;
1620
		for (int i= 0; i < content.size(); i++) {
1620
		if (combo.getItemCount() != 0) {
1621
			Point selection= combo.getSelection();
1622
			combo.setItem(0, content.get(0).toString());
1623
			combo.select(0);
1624
			combo.setSelection(selection);
1625
			combo.remove(1, combo.getItemCount() - 1);
1626
			startIndex= 1;
1627
		}
1628
		for (int i= startIndex; i < content.size(); i++) {
1621
			combo.add(content.get(i).toString());
1629
			combo.add(content.get(i).toString());
1622
		}
1630
		}
1623
	}
1631
	}
Lines 1660-1666 Link Here
1660
			}
1668
			}
1661
			history.add(0, findString);
1669
			history.add(0, findString);
1662
			updateCombo(combo, history);
1670
			updateCombo(combo, history);
1663
			combo.setText(findString);
1664
		}
1671
		}
1665
	}
1672
	}
1666
1673

Return to bug 325234