int historySize = Math
.min(fPreviousSearchPatterns.size(), HISTORY_SIZE);
s.put(STORE_HISTORY_SIZE, historySize);
for (int i = 0; i < historySize; i++)
fPreviousSearchPatterns.get(i).store(
s.addNewSection(STORE_HISTORY + i));
}
private void statusMessage(boolean error, String message) {
statusLabel.setText(message);
if (error)