Bug 72151 [find/replace] combobox needs to remember more items

Change-Id: I1695e76658d4026050a53ab0bd3ed988dd6f3ef4
Signed-off-by: Björn Michael <b.michael@gmx.de>
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
index 357fc55..f8cdc2d 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
@@ -154,7 +154,7 @@
 	}
 
 	/** The size of the dialogs search history. */
-	private static final int HISTORY_SIZE= 5;
+	private static final int HISTORY_SIZE= 15;
 
 	private Point fIncrementalBaseLocation;
 	private boolean fWrapInit, fCaseInit, fWholeWordInit, fForwardInit, fGlobalInit, fIncrementalInit;
@@ -240,8 +240,8 @@
 		fTarget= null;
 
 		fDialogPositionInit= null;
-		fFindHistory= new ArrayList<>(HISTORY_SIZE - 1);
-		fReplaceHistory= new ArrayList<>(HISTORY_SIZE - 1);
+		fFindHistory= new ArrayList<>(HISTORY_SIZE);
+		fReplaceHistory= new ArrayList<>(HISTORY_SIZE);
 
 		fWrapInit= false;
 		fCaseInit= false;
@@ -1884,8 +1884,8 @@
 			}
 		}
 
-		while (history.size() > 8)
-			history.remove(8);
+		while (history.size() > HISTORY_SIZE)
+			history.remove(HISTORY_SIZE);
 
 		String[] names= new String[history.size()];
 		history.toArray(names);